| java.lang.Object org.pdfbox.pdmodel.common.COSArrayList
COSArrayList | public class COSArrayList implements List(Code) | | This is an implementation of a List that will sync its contents to a COSArray.
author: Ben Litchfield version: $Revision: 1.15 $ |
COSArrayList | public COSArrayList()(Code) | | Default constructor.
|
COSArrayList | public COSArrayList(List actualList, COSArray cosArray)(Code) | | Constructor.
Parameters: actualList - The list of standard java objects Parameters: cosArray - The COS array object to sync to. |
COSArrayList | public COSArrayList(Object actualObject, COSBase item, COSDictionary dictionary, String dictionaryKey)(Code) | | This is a really special constructor. Sometimes the PDF spec says
that a dictionary entry can either be a single item or an array of those
items. But in the PDModel interface we really just want to always return
a java.util.List. In the case were we get the list and never modify it
we don't want to convert to COSArray and put one element, unless we append
to the list. So here we are going to create this object with a single
item instead of a list, but allow more items to be added and then converted
to an array.
Parameters: actualObject - The PDModel object. Parameters: item - The COS Model object. Parameters: dictionary - The dictionary that holds the item, and will hold the array if an item is added. Parameters: dictionaryKey - The key into the dictionary to set the item. |
clear | public void clear()(Code) | | |
convertCOSNameCOSArrayToList | public static List convertCOSNameCOSArrayToList(COSArray nameArray)(Code) | | This will take an array of COSName and return a COSArrayList of
java.lang.String values.
Parameters: nameArray - The existing name Array. The list of String objects. |
convertCOSStringCOSArrayToList | public static List convertCOSStringCOSArrayToList(COSArray stringArray)(Code) | | This will take an array of COSString and return a COSArrayList of
java.lang.String values.
Parameters: stringArray - The existing name Array. The list of String objects. |
convertFloatCOSArrayToList | public static List convertFloatCOSArrayToList(COSArray floatArray)(Code) | | This will take an array of COSNumbers and return a COSArrayList of
java.lang.Float values.
Parameters: floatArray - The existing float Array. The list of Float objects. |
convertIntegerCOSArrayToList | public static List convertIntegerCOSArrayToList(COSArray intArray)(Code) | | This will take an array of COSNumbers and return a COSArrayList of
java.lang.Integer values.
Parameters: intArray - The existing integer Array. A list that is part of the core Java collections. |
convertStringListToCOSNameCOSArray | public static COSArray convertStringListToCOSNameCOSArray(List strings)(Code) | | This will take an list of string objects and return a COSArray of COSName
objects.
Parameters: strings - A list of strings An array of COSName objects |
convertStringListToCOSStringCOSArray | public static COSArray convertStringListToCOSStringCOSArray(List strings)(Code) | | This will take an list of string objects and return a COSArray of COSName
objects.
Parameters: strings - A list of strings An array of COSName objects |
converterToCOSArray | public static COSArray converterToCOSArray(List cosObjectableList)(Code) | | This will convert a list of COSObjectables to an
array list of COSBase objects.
Parameters: cosObjectableList - A list of COSObjectable. A list of COSBase. |
hashCode | public int hashCode()(Code) | | |
isEmpty | public boolean isEmpty()(Code) | | |
subList | public List subList(int fromIndex, int toIndex)(Code) | | |
|
|