Class ASArray
- java.lang.Object
-
- com.adobe.internal.pdftoolkit.core.types.ASObject
-
- com.adobe.internal.pdftoolkit.core.types.ASArray
-
-
Constructor Summary
Constructors Constructor Description ASArray()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, ASObject element)booleanadd(ASObject o)booleanaddAll(int index, Collection<? extends ASObject> c)booleanaddAll(Collection<? extends ASObject> c)voidclear()booleancontains(Object o)booleancontainsAll(Collection<?> c)ASObjectget(int index)ASArraygetArray(int index)ASBooleangetBoolean(int index)ASDictionarygetDictionary(int index)ASNamegetName(int index)ASNumbergetNumber(int index)ASStringgetString(int index)intindexOf(Object o)booleanisEmpty()Iterator<ASObject>iterator()intlastIndexOf(Object o)ListIterator<ASObject>listIterator()ListIterator<ASObject>listIterator(int index)ASObjectremove(int index)booleanremove(Object o)booleanremoveAll(Collection<?> c)booleanretainAll(Collection<?> c)ASObjectset(int index, ASObject element)intsize()List<ASObject>subList(int fromIndex, int toIndex)Object[]toArray()Object[]toArray(Object[] a)StringtoString()voidwrite(OutputByteStream outputByteStream)Writes the ASObject to the given OutputStream in the format expected by the PDF Spec.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
-
-
-
Method Detail
-
getNumber
public ASNumber getNumber(int index) throws PDFUnableToCompleteOperationException
-
getBoolean
public ASBoolean getBoolean(int index) throws PDFUnableToCompleteOperationException
-
getName
public ASName getName(int index) throws PDFUnableToCompleteOperationException
-
getString
public ASString getString(int index) throws PDFUnableToCompleteOperationException
-
getArray
public ASArray getArray(int index) throws PDFUnableToCompleteOperationException
-
getDictionary
public ASDictionary getDictionary(int index) throws PDFUnableToCompleteOperationException
-
size
public int size()
-
clear
public void clear()
-
isEmpty
public boolean isEmpty()
-
toArray
public Object[] toArray()
-
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOfin interfaceList<ASObject>
-
add
public boolean add(ASObject o)
-
contains
public boolean contains(Object o)
-
remove
public boolean remove(Object o)
-
addAll
public boolean addAll(int index, Collection<? extends ASObject> c)
-
addAll
public boolean addAll(Collection<? extends ASObject> c)
-
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAllin interfaceCollection<ASObject>- Specified by:
containsAllin interfaceList<ASObject>
-
removeAll
public boolean removeAll(Collection<?> c)
-
retainAll
public boolean retainAll(Collection<?> c)
-
listIterator
public ListIterator<ASObject> listIterator()
- Specified by:
listIteratorin interfaceList<ASObject>
-
listIterator
public ListIterator<ASObject> listIterator(int index)
- Specified by:
listIteratorin interfaceList<ASObject>
-
write
public void write(OutputByteStream outputByteStream) throws PDFIOException
Description copied from class:ASObjectWrites the ASObject to the given OutputStream in the format expected by the PDF Spec.- Specified by:
writein classASObject- Parameters:
outputByteStream- OutputByteStream to write to.- Throws:
PDFIOException- exception from OutputStream
-
-