|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.qoppa.pdf.source.FilePDFSource
com.qoppa.pdf.source.RAFilePDFSource
public class RAFilePDFSource
Implementation of the PDFSource interface that uses a RandomAccessFile. This class opens a file using a RandomAccessFile and fulfills the PDFSource interface by passing the calls on to the file.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
PDFContent |
getContent()
Returns an object that implements PDFContent, that contains and can deliver the contents of the PDF document. |
| Methods inherited from class com.qoppa.pdf.source.FilePDFSource |
|---|
equals, getFile, getName, getPath |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RAFilePDFSource(File source)
throws PDFException
RAFilePDFSource instance using the given
File.
source - A source file
PDFException - If the source file does not exist
public RAFilePDFSource(String fileName)
throws PDFException
RAFilePDFSource instance using the given
fileName.
fileName - A fileName string
PDFException - If the File created with fileName
does not exist
public 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 locked
PDFException - 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 locked
PDFException - If the source file does not existPDFContent| Method Detail |
|---|
public PDFContent getContent()
throws IOException
PDFSource
getContent in interface PDFSourcegetContent in class FilePDFSourceIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||