public interface Document extends OutputFile
A Document
represents any Document
to be converted and the resulting Document
from any
conversion.
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Returns the
Document name with no file extension. |
void |
read(java.io.InputStream is)
Reads the content from the
InputStream into
the Document . |
getFileName, getMIMEType, isMasterDocument, write
void read(java.io.InputStream is) throws java.io.IOException
Reads the content from the InputStream
into
the Document
.
This method may not be thread-safe. Implementations may or may not synchronize this method. User code (i.e. caller) must make sure that calls to this method are thread-safe.
is
- InputStream
to read in the
Document
content.java.io.IOException
- If any I/O error occurs.java.lang.String getName()
Document
name with no file extension.Document
name with no file extension.