Package org.apache.pdfbox.cos
Class COSNull
java.lang.Object
org.apache.pdfbox.cos.COSBase
org.apache.pdfbox.cos.COSNull
- All Implemented Interfaces:
COSObjectable
This class represents a null PDF object.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final COSNull
The one null object in the system.static final byte[]
The null token. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccept
(ICOSVisitor visitor) Visitor pattern double dispatch method.toString()
void
writePDF
(OutputStream output) This will output this string as a PDF object.Methods inherited from class org.apache.pdfbox.cos.COSBase
getCOSObject, isDirect, setDirect
-
Field Details
-
NULL_BYTES
public static final byte[] NULL_BYTESThe null token. -
NULL
The one null object in the system.
-
-
Constructor Details
-
COSNull
private COSNull()Constructor.
-
-
Method Details
-
accept
Visitor pattern double dispatch method.- Specified by:
accept
in classCOSBase
- Parameters:
visitor
- The object to notify when visiting this object.- Returns:
- any object, depending on the visitor implementation, or null
- Throws:
IOException
- If an error occurs while visiting this object.
-
writePDF
This will output this string as a PDF object.- Parameters:
output
- The stream to write to.- Throws:
IOException
- If there is an error writing to the stream.
-
toString
-