public abstract class PluginDocumentContent
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
name |
protected java.util.List<java.lang.String> |
partContentType |
protected java.lang.Long |
size |
protected java.lang.String |
type |
| Constructor and Description |
|---|
PluginDocumentContent() |
| Modifier and Type | Method and Description |
|---|---|
void |
changePDFToTIFF()
This changes the MIME type and file extension from PDF to TIFF.
|
void |
close()
Clean up any resources, such as temporary files, used by this object.
|
int |
getContentPartCount()
CM - returns the number of parts in the document.
|
java.lang.Long |
getContentSize()
Returns the content size, if known.
|
java.lang.String |
getContentType()
Returns the mimetype of the document(/part;/element)
|
java.lang.String |
getContentUrl()
P8 - returns the url for external document/elements, otherwise returns null.
|
java.lang.String |
getETag()
Get a unique hash for this content, suitable to use as an ETag header, for this content.
|
java.lang.String |
getFileName()
Get the file name for the document(/part;/element)
|
abstract java.io.InputStream |
getInputStream()
Returns the InputStream of the document(/part;/element) content stream.
|
int |
getNumPagesInLastSegment()
OD - returns the number of pages in the last segment.
|
int |
getNumPagesInSegment()
OD - returns the number of pages per segment.
|
int |
getNumSegments()
OD - returns the number of segments in the document.
|
java.lang.String |
getPartContentType(int partNum)
CM - Returns the mimetype of the part, for multi-part documents.
|
java.lang.String |
getTextEncoding()
CM - returns the encoding for text/plain documents For other repositories, returns null.
|
boolean |
isViaUrl()
P8 - returns true for external document/elements.
|
protected java.lang.String type
protected java.lang.Long size
protected java.lang.String name
protected java.util.List<java.lang.String> partContentType
public java.lang.String getFileName()
public java.lang.String getContentType()
public void changePDFToTIFF()
public java.lang.String getPartContentType(int partNum)
partNum - public java.lang.Long getContentSize()
public abstract java.io.InputStream getInputStream()
throws java.lang.Exception
java.lang.Exceptionpublic boolean isViaUrl()
public java.lang.String getContentUrl()
public int getContentPartCount()
public java.lang.String getTextEncoding()
public int getNumSegments()
public int getNumPagesInSegment()
public int getNumPagesInLastSegment()
public java.lang.String getETag()
public void close()