com.etymon.pj.object
Class PjNull

java.lang.Object
  |
  +--com.etymon.pj.object.BaseObject
        |
        +--com.etymon.pj.object.PjObject
              |
              +--com.etymon.pj.object.PjNull
All Implemented Interfaces:
java.lang.Cloneable

public class PjNull
extends PjObject

A representation of the PDF null type.


Constructor Summary
PjNull()
          Creates a null object.
 
Method Summary
 java.lang.Object clone()
          Returns a deep copy of this object.
 boolean equals(java.lang.Object obj)
          Compares two PjNull objects for equality.
 long writePdf(java.io.OutputStream os)
          Writes this object (null) to a stream in PDF format.
 
Methods inherited from class com.etymon.pj.object.PjObject
renumber
 
Methods inherited from class com.etymon.pj.object.BaseObject
toString, write, write, write, writeln
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PjNull

public PjNull()
Creates a null object.
Method Detail

writePdf

public long writePdf(java.io.OutputStream os)
              throws java.io.IOException
Writes this object (null) to a stream in PDF format.
Overrides:
writePdf in class BaseObject
Parameters:
os - the stream to write to.
Returns:
the number of bytes written.
Throws:
java.io.IOException - if an I/O error occurs.

clone

public java.lang.Object clone()
Returns a deep copy of this object.
Overrides:
clone in class BaseObject
Returns:
a deep copy of this object.

equals

public boolean equals(java.lang.Object obj)
Compares two PjNull objects for equality. They are automatically considered to be equal if both objects are truly instances of PjNull.
Overrides:
equals in class java.lang.Object
Parameters:
obj - the reference object to compare to.
Returns:
true if this object is the same as obj, false otherwise.