| Constructor and Description |
|---|
TXT() |
public boolean check(String filePath) throws IOException
check in interface IDocumentIOExceptionpublic boolean check(InputStream inStream) throws IOException
check in interface IDocumentIOExceptionpublic int getPageCount()
getCurrentPageCount().getPageCount in interface IDocumentpublic CurrentPageCount getCurrentPageCount()
getCurrentPageCount in interface IDocumentpublic IPage getPage(int pageIndex) throws XDocException, IOException
getPage in interface IDocumentXDocExceptionIOExceptionpublic IPage getPage(int pageIndex, long timeoutInMS) throws XDocException, InterruptedException, IOException
getPage in interface IDocumentXDocExceptionInterruptedExceptionIOExceptionpublic String getFileName()
getFileName in interface IDocumentpublic FileInfo getFileInfo(String fileName, String password) throws FileCorruptException, XDocException, IOException
getFileInfo in interface IDocumentFileCorruptExceptionXDocExceptionIOExceptionpublic FileInfo getFileInfo(InputStream inStream, String password) throws FileCorruptException, XDocException, IOException
getFileInfo in interface IDocumentFileCorruptExceptionXDocExceptionIOExceptionpublic DocumentInfo getDocumentInfo()
getDocumentInfo in interface IDocumentpublic Preferences getPreferences()
getPreferences in interface IDocumentpublic EncoderSettings getEncoderSettings()
getEncoderSettings in interface IDocumentpublic void setEncoderSettings(EncoderSettings encoderSettings) throws XDocException
setEncoderSettings in interface IDocumentXDocExceptionpublic FormatKind getFormatKind()
getFormatKind in interface IDocumentpublic String[] getSupportedFileExtensions()
getSupportedFileExtensions in interface IDocumentpublic String[] getSupportedMIMETypes()
getSupportedMIMETypes in interface IDocumentpublic String getMIMEType()
getMIMEType in interface IDocumentpublic String[] getFileExtensionsForMIMEType(String MIMEType)
getFileExtensionsForMIMEType in interface IDocumentpublic String[] getMIMETypesForFileExtension(String fileExtension)
getMIMETypesForFileExtension in interface IDocumentpublic void addDocumentListener(DocumentListener documentListener)
addDocumentListener in interface IDocumentpublic DocumentListener removeDocumentListener(DocumentListener documentListener)
removeDocumentListener in interface IDocumentpublic DocumentListener[] getDocumentListeners()
getDocumentListeners in interface IDocumentpublic LoadDocumentFutureTask loadDocumentAsync(String fileName, String password) throws FormatNotSupportedException, IncorrectPasswordException, XDocException, IOException
loadDocumentAsync in interface IDocumentFormatNotSupportedExceptionIncorrectPasswordExceptionXDocExceptionIOExceptionpublic LoadDocumentFutureTask loadDocumentAsync(InputStream inStream, String password) throws FormatNotSupportedException, IncorrectPasswordException, XDocException, IOException
loadDocumentAsync in interface IDocumentFormatNotSupportedExceptionIncorrectPasswordExceptionXDocExceptionIOExceptionpublic void loadDocument(InputStream inStream, String password) throws FormatNotSupportedException, IncorrectPasswordException, XDocException, IOException
loadDocument in interface IDocumentFormatNotSupportedExceptionIncorrectPasswordExceptionXDocExceptionIOExceptionpublic void loadDocument(String fileName, String password) throws FormatNotSupportedException, IncorrectPasswordException, XDocException, IOException
loadDocument in interface IDocumentFormatNotSupportedExceptionIncorrectPasswordExceptionXDocExceptionIOExceptionpublic void closeDocument()
throws IOException
closeDocument in interface IDocumentIOExceptionpublic void addLine(String line)
public void copyFrom(IDocument sourceDocument, PageRangeSettings pageRangeSettings) throws XDocException, IOException
copyFrom in interface IDocumentXDocExceptionIOExceptionpublic void copyFrom(IDocument sourceDocument, PageRangeSettings pageRangeSettings, DigitizerSettings digitizerSettings) throws XDocException, IOException
copyFrom in interface IDocumentXDocExceptionIOExceptionpublic void save(String outputDir, String baseFileName) throws XDocException, IOException
save in interface IDocumentXDocExceptionIOExceptionpublic void save(OutputStream outputStream) throws XDocException, IOException
save in interface IDocumentXDocExceptionIOException