PDF Clown
0.0.8

it.stefanochizzolini.clown.objects
Class PdfArray

java.lang.Object
  extended by it.stefanochizzolini.clown.objects.PdfObject
      extended by it.stefanochizzolini.clown.objects.PdfDataObject
          extended by it.stefanochizzolini.clown.objects.PdfDirectObject
              extended by it.stefanochizzolini.clown.objects.PdfArray
All Implemented Interfaces:
Cloneable, Comparable<PdfDirectObject>, Iterable<PdfDirectObject>, Collection<PdfDirectObject>, List<PdfDirectObject>

public class PdfArray
extends PdfDirectObject
implements List<PdfDirectObject>

PDF array object [PDF:1.6:3.2.5].

Since:
0.0.0
Version:
0.0.8
Author:
Stefano Chizzolini (http://www.stefanochizzolini.it)

Constructor Summary
PdfArray()
           
PdfArray(int capacity)
           
PdfArray(PdfDirectObject... items)
           
 
Method Summary
 void add(int index, PdfDirectObject object)
           
 boolean add(PdfDirectObject object)
           
 boolean addAll(Collection<? extends PdfDirectObject> objects)
           
 boolean addAll(int index, Collection<? extends PdfDirectObject> objects)
           
 void clear()
           
 Object clone(File context)
          Gets the clone of the object, registered inside the given file context.
 int compareTo(PdfDirectObject obj)
           
 boolean contains(Object object)
           
 boolean containsAll(Collection<?> objects)
           
 boolean equals(PdfDirectObject object)
           
 PdfDirectObject get(int index)
           
 int hashCode()
           
 int indexOf(Object object)
           
 boolean isEmpty()
           
 Iterator<PdfDirectObject> iterator()
           
 int lastIndexOf(Object object)
           
 ListIterator<PdfDirectObject> listIterator()
           
 ListIterator<PdfDirectObject> listIterator(int index)
           
 PdfDirectObject remove(int index)
           
 boolean remove(Object object)
           
 boolean removeAll(Collection<?> objects)
           
 PdfDataObject resolve(int index)
          Gets the dereferenced value corresponding to the given index.
 boolean retainAll(Collection<?> objects)
           
 PdfDirectObject set(int index, PdfDirectObject object)
           
 int size()
           
 List<PdfDirectObject> subList(int fromIndex, int toIndex)
           
 PdfDirectObject[] toArray()
           
<T> T[]
toArray(T[] objects)
           
 String toString()
           
 void writeTo(IOutputStream stream)
          Serializes the object to the given stream.
 
Methods inherited from class it.stefanochizzolini.clown.objects.PdfDirectObject
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
equals
 

Constructor Detail

PdfArray

public PdfArray()

PdfArray

public PdfArray(int capacity)

PdfArray

public PdfArray(PdfDirectObject... items)
Method Detail

clone

public Object clone(File context)
Description copied from class: PdfObject
Gets the clone of the object, registered inside the given file context.

Specified by:
clone in class PdfObject

compareTo

public int compareTo(PdfDirectObject obj)
Specified by:
compareTo in interface Comparable<PdfDirectObject>
Specified by:
compareTo in class PdfDirectObject

resolve

public PdfDataObject resolve(int index)
Gets the dereferenced value corresponding to the given index.

Remarks

This method takes care to resolve the value returned by get(int).

Parameters:
index - Index of element to return.
Since:
0.0.8

toString

public String toString()
Overrides:
toString in class Object

writeTo

public void writeTo(IOutputStream stream)
Description copied from class: PdfObject
Serializes the object to the given stream.

Specified by:
writeTo in class PdfObject

add

public void add(int index,
                PdfDirectObject object)
Specified by:
add in interface List<PdfDirectObject>

addAll

public boolean addAll(int index,
                      Collection<? extends PdfDirectObject> objects)
Specified by:
addAll in interface List<PdfDirectObject>

get

public PdfDirectObject get(int index)
Specified by:
get in interface List<PdfDirectObject>

indexOf

public int indexOf(Object object)
Specified by:
indexOf in interface List<PdfDirectObject>

lastIndexOf

public int lastIndexOf(Object object)
Specified by:
lastIndexOf in interface List<PdfDirectObject>

listIterator

public ListIterator<PdfDirectObject> listIterator()
Specified by:
listIterator in interface List<PdfDirectObject>

listIterator

public ListIterator<PdfDirectObject> listIterator(int index)
Specified by:
listIterator in interface List<PdfDirectObject>

remove

public PdfDirectObject remove(int index)
Specified by:
remove in interface List<PdfDirectObject>

set

public PdfDirectObject set(int index,
                           PdfDirectObject object)
Specified by:
set in interface List<PdfDirectObject>

subList

public List<PdfDirectObject> subList(int fromIndex,
                                     int toIndex)
Specified by:
subList in interface List<PdfDirectObject>

add

public boolean add(PdfDirectObject object)
Specified by:
add in interface Collection<PdfDirectObject>
Specified by:
add in interface List<PdfDirectObject>

addAll

public boolean addAll(Collection<? extends PdfDirectObject> objects)
Specified by:
addAll in interface Collection<PdfDirectObject>
Specified by:
addAll in interface List<PdfDirectObject>

clear

public void clear()
Specified by:
clear in interface Collection<PdfDirectObject>
Specified by:
clear in interface List<PdfDirectObject>

contains

public boolean contains(Object object)
Specified by:
contains in interface Collection<PdfDirectObject>
Specified by:
contains in interface List<PdfDirectObject>

containsAll

public boolean containsAll(Collection<?> objects)
Specified by:
containsAll in interface Collection<PdfDirectObject>
Specified by:
containsAll in interface List<PdfDirectObject>

equals

public boolean equals(PdfDirectObject object)

hashCode

public int hashCode()
Specified by:
hashCode in interface Collection<PdfDirectObject>
Specified by:
hashCode in interface List<PdfDirectObject>
Overrides:
hashCode in class Object

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection<PdfDirectObject>
Specified by:
isEmpty in interface List<PdfDirectObject>

remove

public boolean remove(Object object)
Specified by:
remove in interface Collection<PdfDirectObject>
Specified by:
remove in interface List<PdfDirectObject>

removeAll

public boolean removeAll(Collection<?> objects)
Specified by:
removeAll in interface Collection<PdfDirectObject>
Specified by:
removeAll in interface List<PdfDirectObject>

retainAll

public boolean retainAll(Collection<?> objects)
Specified by:
retainAll in interface Collection<PdfDirectObject>
Specified by:
retainAll in interface List<PdfDirectObject>

size

public int size()
Specified by:
size in interface Collection<PdfDirectObject>
Specified by:
size in interface List<PdfDirectObject>

toArray

public PdfDirectObject[] toArray()
Specified by:
toArray in interface Collection<PdfDirectObject>
Specified by:
toArray in interface List<PdfDirectObject>

toArray

public <T> T[] toArray(T[] objects)
Specified by:
toArray in interface Collection<PdfDirectObject>
Specified by:
toArray in interface List<PdfDirectObject>

iterator

public Iterator<PdfDirectObject> iterator()
Specified by:
iterator in interface Iterable<PdfDirectObject>
Specified by:
iterator in interface Collection<PdfDirectObject>
Specified by:
iterator in interface List<PdfDirectObject>

PDF Clown
0.0.8

Project home page

Copyright © 2006-2010 Stefano Chizzolini. Some Rights Reserved.
This documentation is available under the terms of the GNU Free Documentation License.