|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.qoppa.pdf.source.ByteArrayPDFSource
public class ByteArrayPDFSource
Implementation of the PDFSource interface when the document comes from a byte array.
| Constructor Summary | |
|---|---|
ByteArrayPDFSource(byte[] content)
Constructs a source that uses a byte array to hold the PDF content. |
|
ByteArrayPDFSource(byte[] content,
String name,
String path)
Constructs a source that uses a byte array to hold the PDF content. |
|
| Method Summary | |
|---|---|
boolean |
equals(PDFSource other)
Tests if this source is equal to another source. |
byte[] |
getBytes()
Returns the array of bytes that backs this PDF source. |
PDFContent |
getContent()
Returns an object that implements PDFContent, that contains and can deliver the contents of the PDF document. |
String |
getName()
Returns the name of the document. |
String |
getPath()
Returns the full path to the document. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ByteArrayPDFSource(byte[] content)
content - The byte array that holds the PDF content.
public ByteArrayPDFSource(byte[] content,
String name,
String path)
content - The byte array that holds the PDF content.name - THe name of the source, returned by the getName() methodpath - THe path to the source, returned by the getPath() method.| Method Detail |
|---|
public boolean equals(PDFSource other)
PDFSource
equals in interface PDFSourcepublic byte[] getBytes()
public PDFContent getContent()
PDFSource
getContent in interface PDFSourcepublic String getPath()
PDFSource
getPath in interface PDFSourcepublic String getName()
PDFSource
getName in interface PDFSource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||