Package com.tom_roush.pdfbox.cos
Class COSNull
- java.lang.Object
-
- com.tom_roush.pdfbox.cos.COSBase
-
- com.tom_roush.pdfbox.cos.COSNull
-
- All Implemented Interfaces:
COSObjectable
public final class COSNull extends COSBase
This class represents a null PDF object.
-
-
Field Summary
Fields Modifier and Type Field Description static COSNullNULLThe one null object in the system.static byte[]NULL_BYTESThe null token.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectaccept(ICOSVisitor visitor)Visitor pattern double dispatch method.StringtoString()voidwritePDF(OutputStream output)This will output this string as a PDF object.-
Methods inherited from class com.tom_roush.pdfbox.cos.COSBase
getCOSObject, isDirect, setDirect
-
-
-
-
Field Detail
-
NULL_BYTES
public static final byte[] NULL_BYTES
The null token.
-
NULL
public static final COSNull NULL
The one null object in the system.
-
-
Method Detail
-
accept
public Object accept(ICOSVisitor visitor) throws IOException
Visitor pattern double dispatch method.- Specified by:
acceptin 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
public void writePDF(OutputStream output) throws IOException
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.
-
-