com.adobe.icc.render.obj
Class PDFFile

java.lang.Object
  extended by com.adobe.icc.render.obj.PDFFile
All Implemented Interfaces:
java.io.Serializable

public class PDFFile
extends java.lang.Object
implements java.io.Serializable

PDF File object encapsulating a PDF File content, file length and other meta attributes.

See Also:
Serialized Form

Constructor Summary
PDFFile()
          Default constructor.
PDFFile(java.lang.String filename, byte[] document)
          Create PDF file object from parameters.
 
Method Summary
 byte[] getDocument()
          Get binary PDF contents.
 java.lang.Integer getFilelength()
          Get length of PDF
 java.lang.String getFilename()
          Get filename of document
 void setDocument(byte[] document)
          Fill in new PDF content
 void setFilelength(java.lang.Integer filelength)
          Set file length
 void setFilename(java.lang.String dateiname)
          Set filename for binary document
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PDFFile

public PDFFile(java.lang.String filename,
               byte[] document)
Create PDF file object from parameters.

Parameters:
filename - Name of the PDF file.
document - Binary content of the PDF file.

PDFFile

public PDFFile()
Default constructor.
Sets the default filename as "empty.pdf", and contents as empty.

Method Detail

getFilelength

public java.lang.Integer getFilelength()
Get length of PDF

Returns:
length in bytes

setFilelength

public void setFilelength(java.lang.Integer filelength)
Set file length

Parameters:
filelength - length in bytes

getFilename

public java.lang.String getFilename()
Get filename of document

Returns:
filename as text

setFilename

public void setFilename(java.lang.String dateiname)
Set filename for binary document

Parameters:
dateiname -

getDocument

public byte[] getDocument()
Get binary PDF contents.

Returns:
Content as byte array or null if empty.

setDocument

public void setDocument(byte[] document)
Fill in new PDF content

Parameters:
document - Binary content of the PDF file.


[an error occurred while processing this directive] [an error occurred while processing this directive]