You are here

getContentStreamLength

public long getContentStreamLength() returns the content stream length or -1 if the document has no content.

Parameters

None

Returns

Returns a long representing the content stream length or -1 if the document has no content.

Example


    Document doc = getTestDocument(session);
    
    Log.d(TAG, "getContentStreamLength: " + doc.getContentStreamLength());
    Log.d(TAG, "getContentStreamMimeType: " + doc.getContentStreamMimeType());
    Log.d(TAG, "getVersionLabel: " + doc.getVersionLabel());
    Log.d(TAG, "isLatestVersion: " + doc.isLatestVersion());        

      

Would result in the following output:


    getContentStreamLength: 1384691
    getContentStreamMimeType: image/jpeg
    getVersionLabel: 1.0
    isLatestVersion: true