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
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintoutput(OutputStream stream) Write the PDF represention of this objectprotected StringThis method returns a String representation of the PDF object.Methods inherited from class 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
-
Constructor Details
-
Contents
Contents()
-
-
Method Details
-
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
Description 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:
IOException- if there is an error writing to the stream
-