Class PDFNumsArray

java.lang.Object
org.apache.fop.pdf.PDFObject
org.apache.fop.pdf.PDFNumsArray
All Implemented Interfaces:
PDFWritable

public class PDFNumsArray extends PDFObject
Class representing an "Nums" array object (for Number Trees).
  • Field Details

  • Constructor Details

    • PDFNumsArray

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

    • length

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

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

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

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

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

      public int output(OutputStream stream) throws IOException
      Write the PDF represention of this object
      Overrides:
      output in class PDFObject
      Parameters:
      stream - the stream to write the PDF to
      Returns:
      the number of bytes written
      Throws:
      IOException - if there is an error writing to the stream