Java Doc for COSArrayList.java in  » PDF » PDFBox-0.7.3 » org » pdfbox » pdmodel » common » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » PDF » PDFBox 0.7.3 » org.pdfbox.pdmodel.common 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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 $



Constructor Summary
public  COSArrayList()
     Default constructor.
public  COSArrayList(List actualList, COSArray cosArray)
     Constructor.
public  COSArrayList(Object actualObject, COSBase item, COSDictionary dictionary, String dictionaryKey)
     This is a really special constructor.

Method Summary
public  booleanadd(Object o)
    
public  voidadd(int index, Object element)
    
public  booleanaddAll(Collection c)
    
public  booleanaddAll(int index, Collection c)
    
public  voidclear()
    
public  booleancontains(Object o)
    
public  booleancontainsAll(Collection c)
    
public static  ListconvertCOSNameCOSArrayToList(COSArray nameArray)
     This will take an array of COSName and return a COSArrayList of java.lang.String values.
Parameters:
  nameArray - The existing name Array.
public static  ListconvertCOSStringCOSArrayToList(COSArray stringArray)
     This will take an array of COSString and return a COSArrayList of java.lang.String values.
Parameters:
  stringArray - The existing name Array.
public static  ListconvertFloatCOSArrayToList(COSArray floatArray)
     This will take an array of COSNumbers and return a COSArrayList of java.lang.Float values.
Parameters:
  floatArray - The existing float Array.
public static  ListconvertIntegerCOSArrayToList(COSArray intArray)
     This will take an array of COSNumbers and return a COSArrayList of java.lang.Integer values.
Parameters:
  intArray - The existing integer Array.
public static  COSArrayconvertStringListToCOSNameCOSArray(List strings)
     This will take an list of string objects and return a COSArray of COSName objects.
public static  COSArrayconvertStringListToCOSStringCOSArray(List strings)
     This will take an list of string objects and return a COSArray of COSName objects.
public static  COSArrayconverterToCOSArray(List cosObjectableList)
     This will convert a list of COSObjectables to an array list of COSBase objects.
Parameters:
  cosObjectableList - A list of COSObjectable.
public  booleanequals(Object o)
    
public  Objectget(int index)
    
public  inthashCode()
    
public  intindexOf(Object o)
    
public  booleanisEmpty()
    
public  Iteratoriterator()
    
public  intlastIndexOf(Object o)
    
public  ListIteratorlistIterator()
    
public  ListIteratorlistIterator(int index)
    
public  booleanremove(Object o)
    
public  Objectremove(int index)
    
public  booleanremoveAll(Collection c)
    
public  booleanretainAll(Collection c)
    
public  Objectset(int index, Object element)
    
public  intsize()
    
public  ListsubList(int fromIndex, int toIndex)
    
public  Object[]toArray()
    
public  Object[]toArray(Object[] a)
    


Constructor Detail
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.




Method Detail
add
public boolean add(Object o)(Code)



add
public void add(int index, Object element)(Code)



addAll
public boolean addAll(Collection c)(Code)



addAll
public boolean addAll(int index, Collection c)(Code)



clear
public void clear()(Code)



contains
public boolean contains(Object o)(Code)



containsAll
public boolean containsAll(Collection c)(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.



equals
public boolean equals(Object o)(Code)



get
public Object get(int index)(Code)



hashCode
public int hashCode()(Code)



indexOf
public int indexOf(Object o)(Code)



isEmpty
public boolean isEmpty()(Code)



iterator
public Iterator iterator()(Code)



lastIndexOf
public int lastIndexOf(Object o)(Code)



listIterator
public ListIterator listIterator()(Code)



listIterator
public ListIterator listIterator(int index)(Code)



remove
public boolean remove(Object o)(Code)



remove
public Object remove(int index)(Code)



removeAll
public boolean removeAll(Collection c)(Code)



retainAll
public boolean retainAll(Collection c)(Code)



set
public Object set(int index, Object element)(Code)



size
public int size()(Code)



subList
public List subList(int fromIndex, int toIndex)(Code)



toArray
public Object[] toArray()(Code)



toArray
public Object[] toArray(Object[] a)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.