public class DocumentHandlerFactory extends Object
Constructor and Description |
---|
DocumentHandlerFactory() |
Modifier and Type | Method and Description |
---|---|
static IDocumentReader |
createDocumentReader(DocumentType documentType,
InputStream inputStream)
Creates a document reader object, which will read from the stream given in the inputStream
parameter
|
static IDocumentReader |
createDocumentReader(DocumentType documentType,
String filePath)
Creates a document reader object, which will read from the file given in the filepath
parameter.
|
static IDocumentWriter |
createDocumentWriter(DocumentType documentType,
InputStream inputStream,
OutputStream outputStream)
Creates a document writer object, which will read from the inpotstream and write to the
stream given in the outputstream parameter
|
static IDocumentWriter |
createDocumentWriter(DocumentType documentType,
OutputStream outputStream)
Creates a document writer object, which will read and write from/to the stream given in the
output stream parameter
|
static IDocumentWriter |
createDocumentWriter(DocumentType documentType,
String filePath)
Creates a document writer object, which will read and write from/to the file given in the
filepath parameter.
|
public static IDocumentWriter createDocumentWriter(DocumentType documentType, String filePath) throws Exception
documentType
- the type of the document, which is defined in the DocumentType enumfilePath
- the path of the file where the document should be read and saved (i.e.
"c:\\temp\\test.pptx")Exception
public static IDocumentWriter createDocumentWriter(DocumentType documentType, InputStream inputStream, OutputStream outputStream) throws Exception
documentType
- the type of the document, which is defined in the DocumentType enuminputStream
- the input stream where the document should be read and savedException
public static IDocumentWriter createDocumentWriter(DocumentType documentType, OutputStream outputStream) throws Exception
documentType
- outputStream
- Exception
public static IDocumentReader createDocumentReader(DocumentType documentType, String filePath) throws Exception
documentType
- the type of the document, which is defined in the DocumentType enumfilePath
- the path of the file from where the document should be readException
public static IDocumentReader createDocumentReader(DocumentType documentType, InputStream inputStream) throws Exception
documentType
- the type of the document, which is defined in the DocumentType enuminputStream
- the input stream from where the document should be readException