PDFWritablepublic class PDFNumsArray extends PDFObject
| Modifier and Type | Field | Description |
|---|---|---|
protected java.util.SortedMap<java.lang.Integer,java.lang.Object> |
map |
Sorted Map holding the values of this array.
|
| Constructor | Description |
|---|---|
PDFNumsArray(PDFObject parent) |
Create a new, empty array object.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Object |
get(int key) |
Gets an entry.
|
java.lang.Object |
get(java.lang.Integer key) |
Gets an entry.
|
int |
length() |
Returns the length of the array
|
int |
output(java.io.OutputStream stream) |
Write the PDF represention of this object
|
void |
put(int key,
java.lang.Object obj) |
Sets an entry.
|
void |
put(java.lang.Integer key,
java.lang.Object obj) |
Sets an entry.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontentEquals, encode, encodeBinaryToHexString, encodeString, encodeText, formatObject, getChildren, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, outputInline, referencePDF, setDocument, setObjectNumber, setObjectNumber, setObjectNumber, setParent, toPDF, toPDFStringprotected java.util.SortedMap<java.lang.Integer,java.lang.Object> map
public PDFNumsArray(PDFObject parent)
parent - the object's parent if anypublic int length()
public void put(java.lang.Integer key,
java.lang.Object obj)
key - the key of the value to setobj - the new valuepublic void put(int key,
java.lang.Object obj)
key - the key of the value to setobj - the new valuepublic java.lang.Object get(java.lang.Integer key)
key - the key of requested valuepublic java.lang.Object get(int key)
key - the key of requested valuepublic int output(java.io.OutputStream stream)
throws java.io.IOException
Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.