Package org.apache.fop.pdf
Class PDFSignature.Contents
- java.lang.Object
-
- org.apache.fop.pdf.PDFObject
-
- org.apache.fop.pdf.PDFSignature.Contents
-
- All Implemented Interfaces:
CompressedObject,PDFWritable
- Enclosing class:
- PDFSignature
class PDFSignature.Contents extends PDFObject
-
-
Constructor Summary
Constructors Constructor Description Contents()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intoutput(java.io.OutputStream stream)Write the PDF represention of this objectprotected java.lang.StringtoPDFString()This method returns a String representation of the PDF object.-
Methods inherited from class org.apache.fop.pdf.PDFObject
contentEquals, encode, encodeBinaryToHexString, encodeString, encodeText, formatObject, getChildren, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, outputInline, referencePDF, setDocument, setObjectNumber, setObjectNumber, setObjectNumber, setParent, supportsObjectStream, toPDF
-
-
-
-
Method Detail
-
toPDFString
protected java.lang.String toPDFString()
Description copied from class:PDFObjectThis method returns a String representation of the PDF object. The result is normally converted/encoded to a byte array by toPDF(). Only use this method to implement the serialization if the object can be fully represented as text. If the PDF representation of the object contains binary content use toPDF() or output(OutputStream) instead. This applies to any object potentially containing a string object because string object are encrypted and therefore need to be binary.- Overrides:
toPDFStringin classPDFObject- Returns:
- String the String representation
-
output
public int output(java.io.OutputStream stream) throws java.io.IOExceptionDescription copied from class:PDFObjectWrite the PDF represention of this object- Specified by:
outputin interfaceCompressedObject- Overrides:
outputin classPDFObject- Parameters:
stream- the stream to write the PDF to- Returns:
- the number of bytes written
- Throws:
java.io.IOException- if there is an error writing to the stream
-
-