1 31 package org.pdfbox.cos; 32 33 34 35 import java.io.IOException ; 36 import java.io.OutputStream ; 37 38 import org.pdfbox.exceptions.COSVisitorException; 39 40 46 public class COSNull extends COSBase 47 { 48 51 public static final byte[] NULL_BYTES = new byte[] {110, 117, 108, 108}; 53 56 public static final COSNull NULL = new COSNull(); 57 58 61 private COSNull() 62 { 63 } 65 66 73 public Object accept( ICOSVisitor visitor ) throws COSVisitorException 74 { 75 return visitor.visitFromNull( this ); 76 } 77 78 84 public void writePDF( OutputStream output ) throws IOException  85 { 86 output.write(NULL_BYTES); 87 } 88 } | Popular Tags |