public class RAFilePDFSource extends FilePDFSource
Constructor and Description |
---|
RAFilePDFSource(File source)
Creates a new
RAFilePDFSource instance using the given
File . |
RAFilePDFSource(File source,
boolean lockFile)
Creates a new
RAFilePDFSource instance using the given
File and boolean parameter indicating if the file should be
locked. |
RAFilePDFSource(String fileName)
Creates a new
RAFilePDFSource instance using the given
fileName. |
RAFilePDFSource(String fileName,
boolean lockFile)
Creates a new
RAFilePDFSource instance using the given
fileName and boolean parameter indicating if the file should be locked. |
Modifier and Type | Method and Description |
---|---|
PDFContent |
getContent()
Returns an object that implements PDFContent, that contains and can deliver the contents of the PDF document.
|
equals, getFile, getName, getPath
public RAFilePDFSource(File source) throws PDFException
RAFilePDFSource
instance using the given
File
.source
- A source filePDFException
- If the source
file does not existpublic RAFilePDFSource(String fileName) throws PDFException
RAFilePDFSource
instance using the given
fileName.fileName
- A fileName stringPDFException
- If the File
created with fileName
does not existpublic RAFilePDFSource(String fileName, boolean lockFile) throws PDFException
RAFilePDFSource
instance using the given
fileName and boolean parameter indicating if the file should be locked.
To unlock, use getContent().close()
.fileName
- A fileName stringlockFile
- If true
, the internal
RandomAccessFile
will be locked, otherwise it
will not be lockedPDFException
- If the File
created with fileName
does not existPDFContent
public RAFilePDFSource(File source, boolean lockFile) throws PDFException
RAFilePDFSource
instance using the given
File
and boolean parameter indicating if the file should be
locked. To unlock, use getContent().close()
.source
- A source filelockFile
- If true
, the internal
RandomAccessFile
will be locked, otherwise it
will not be lockedPDFException
- If the source
file does not existPDFContent
public PDFContent getContent() throws IOException
PDFSource
getContent
in interface PDFSource
getContent
in class FilePDFSource
IOException