|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.etymon.pj.object.BaseObject
com.etymon.pj.object.PjObject
com.etymon.pj.object.PjArray
public class PjArray
A representation of the PDF array type.
Field Summary | |
---|---|
protected java.util.Vector |
_v
|
Constructor Summary | |
---|---|
PjArray()
Creates an empty array. |
|
PjArray(java.util.Vector v)
Creates an array as a wrapper around a Vector. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Returns a deep copy of this object. |
protected java.util.Vector |
cloneVector()
|
java.util.Vector |
getVector()
Returns the Vector used to represent this array. |
void |
renumber(java.util.Hashtable map)
Renumbers object references within this object. |
long |
writePdf(java.io.OutputStream os)
Writes this array to a stream in PDF format. |
Methods inherited from class com.etymon.pj.object.BaseObject |
---|
toString, write, write, write, writeln |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.util.Vector _v
Constructor Detail |
---|
public PjArray()
public PjArray(java.util.Vector v)
v
- the Vector to use for this array.Method Detail |
---|
public java.util.Vector getVector()
public long writePdf(java.io.OutputStream os) throws java.io.IOException
writePdf
in class BaseObject
os
- the stream to write to.
java.io.IOException
- if an I/O error occurs.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class BaseObject
java.lang.CloneNotSupportedException
- if the instance can not be cloned.protected java.util.Vector cloneVector() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
public void renumber(java.util.Hashtable map)
renumber
in class PjObject
map
- the table of object number mappings. Each
object number is looked up by key in the hash table, and
the associated value is assigned as the new object number.
The map hash table should consist of PjNumber keys and
PjReference values.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |