public class PDFNumsArray extends PDFObject
| Modifier and Type | Field and Description |
|---|---|
protected SortedMap<Integer,Object> |
map
Sorted Map holding the values of this array.
|
| Constructor and Description |
|---|
PDFNumsArray(PDFObject parent)
Create a new, empty array object.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
get(int key)
Gets an entry.
|
Object |
get(Integer key)
Gets an entry.
|
int |
length()
Returns the length of the array
|
int |
output(OutputStream stream)
Write the PDF represention of this object
|
void |
put(Integer key,
Object obj)
Sets an entry.
|
void |
put(int key,
Object obj)
Sets an entry.
|
contentEquals, encode, encodeBinaryToHexString, encodeString, encodeText, formatObject, getChildren, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, outputInline, referencePDF, setDocument, setObjectNumber, setObjectNumber, setObjectNumber, setParent, supportsObjectStream, toPDF, toPDFStringpublic PDFNumsArray(PDFObject parent)
parent - the object's parent if anypublic int length()
public void put(Integer key, Object obj)
key - the key of the value to setobj - the new valuepublic void put(int key,
Object obj)
key - the key of the value to setobj - the new valuepublic Object get(Integer key)
key - the key of requested valuepublic Object get(int key)
key - the key of requested valuepublic int output(OutputStream stream) throws IOException
output in class PDFObjectstream - the stream to write the PDF toIOException - if there is an error writing to the streamCopyright © 2025 Apache Software Foundation. All rights reserved.