Java org.apache.pdfbox.cos COSArray fields, constructors, methods, implement or subclass

Example usage for Java org.apache.pdfbox.cos COSArray fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.pdfbox.cos COSArray.

The text is from its open source code.

Constructor

COSArray()
Constructor.

Method

voidadd(COSBase object)
This will add an object to the array.
voidadd(COSObjectable object)
This will add an object to the array.
voidadd(int i, COSBase object)
Add the specified object at the ith location and push the rest to the right.
voidaddAll(Collection objectsList)
This will add an object to the array.
voidaddAll(COSArray objectList)
This will add all objects to this array.
voidclear()
This will remove all of the objects in the collection.
COSBaseget(int index)
This will get an object from the array.
intgetInt(int index)
Get the value of the array as an integer.
COSBasegetObject(int index)
This will get an object from the array.
StringgetString(int index)
Get the value of the array as a string.
intindexOf(COSBase object)
This will return the index of the entry or -1 if it is not found.
intindexOfObject(COSBase object)
This will return the index of the entry or -1 if it is not found.
Iteratoriterator()
Get access to the list.
voidsetNeedToBeUpdated(boolean flag)

Although the state is set, it has no effect on COSWriter behavior because arrays are always written as direct object.

intsize()
This will get the size of this array.
float[]toFloatArray()
This will take an COSArray of numbers and convert it to a float[].
ListtoList()
Return contents of COSArray as a Java List.
StringtoString()