org.apache.fop.pdf

Class PDFNumsArray

Implemented Interfaces:
PDFWritable

public class PDFNumsArray
extends PDFObject

Class representing an "Nums" array object (for Number Trees).

Field Summary

protected SortedMap
map
Sorted Map holding the values of this array.

Fields inherited from class org.apache.fop.pdf.PDFObject

DATE_FORMAT, log

Constructor Summary

PDFNumsArray(PDFObject parent)
Create a new, empty array object.

Method Summary

Object
get(int key)
Gets an entry.
int
length()
Returns the length of the array
protected int
output(OutputStream stream)
void
put(int key, Object obj)
Sets an entry.

Methods inherited from class org.apache.fop.pdf.PDFObject

encode, encodeBinaryToHexString, encodeString, encodeText, formatDateTime, formatDateTime, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, output, outputInline, referencePDF, setDocument, setObjectNumber, setParent, toPDF, toPDFString

Field Details

map

protected SortedMap map
Sorted Map holding the values of this array.

Constructor Details

PDFNumsArray

public PDFNumsArray(PDFObject parent)
Create a new, empty array object.
Parameters:
parent - the object's parent if any

Method Details

get

public Object get(int key)
Gets an entry.
Parameters:
key - the key of requested value
Returns:
the requested value

length

public int length()
Returns the length of the array
Returns:
the length of the array

output

protected int output(OutputStream stream)
            throws IOException
Overrides:
output in interface PDFObject

put

public void put(int key,
                Object obj)
Sets an entry.
Parameters:
key - the key of the value to set
obj - the new value

Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.