Java Doc for COSArray.java in  » PDF » jPod » de » intarsys » pdf » cos » 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 » jPod » de.intarsys.pdf.cos 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   de.intarsys.pdf.cos.COSDocumentElement
      de.intarsys.pdf.cos.COSObject
         de.intarsys.pdf.cos.COSCompositeObject
            de.intarsys.pdf.cos.COSArray

COSArray
public class COSArray extends COSCompositeObject (Code)
A COSArray represents an indexed collection of COSDocumentElement instances.

Using the standard access methods, always "dereferenced" COSObject instances are returned. Use the "basic" falvor of methods to access the optional COSIndirectObject .




Constructor Summary
protected  COSArray()
    
protected  COSArray(int size)
    
protected  COSArray(COSArray array)
    

Method Summary
public  java.lang.Objectaccept(ICOSObjectVisitor visitor)
    
public  COSArrayadd(COSObject object)
     Add a COSObject to the collection.
public  COSArrayadd(int index, COSObject object)
     Add a COSObject to the collection.
public  COSArrayasArray()
    
protected  COSArraybasicAddPropagate(int index, COSDocumentElement element)
     add a document element (an object or a reference) to the collection.
protected  COSArraybasicAddPropagate(COSDocumentElement element)
     Add a document element (an object or a reference) to the collection.
public  COSArraybasicAddSilent(COSDocumentElement element)
     Add a document element (an object or a reference) to the collection.

The change is not propagated.

This should not be used by the application level programmer.
protected  voidbasicClearPropagate()
     Remove all elements from the receiver.
public  COSDocumentElementbasicGet(int index)
     Get the COSDocumentElement (an object or a reference) from this at the specified index.
protected  intbasicIndexOf(COSDocumentElement element)
     The index within this where element can be found or -1.
Parameters:
  element - The element to be searched within this.
public  IteratorbasicIterator()
     An iterator that returns all contained COSDocumentElement instances without dereferencing.
protected  booleanbasicRemovePropagate(COSDocumentElement otherElement)
     Remove otherElement from this.
Parameters:
  otherElement - The element to be removed.
protected  COSDocumentElementbasicRemovePropagate(int index)
     Remove element at index.
Parameters:
  index - The index within this to be removed.
protected  COSDocumentElementbasicSetPropagate(int i, COSDocumentElement element)
     replace the object at index <i with element.
protected  StringbasicToString()
    
public  voidclear()
     Remove all elements from this.
protected  COSObjectcopyBasic()
    
public  COSObjectcopyDeep(Map copied)
    
public  COSObjectcopyShallow()
    
protected  COSObjectcopySubGraph(Map copied)
    
public static  COSArraycreate()
     Create an empty COSArray .
public static  COSArraycreate(int size)
     Create an empty COSArray with a preallocated size.
public static  COSArraycreateWith(float a, float b, float c, float d)
    
public static  COSArraycreateWith(float a, float b, float c, float d, float e, float f)
    
public  booleanequals(Object o)
    
protected  booleanequals(Object o, Set visited)
    
public  COSObjectget(int index)
     The COSObject at the given index.
public  ListgetObjects()
     A copy of all COSObject's in this.
public  inthashCode()
    
public  intindexOf(COSObject object)
     The index of object within this or -1 if not found.
Parameters:
  object - The object to be searched within this.
public  booleanisEmpty()
     true if this.size() == 0.
public  java.util.Iteratoriterator()
    
public  COSIndirectObjectreferenceIndirect(COSObject object)
    
public  booleanremove(COSObject object)
     Remove object from this.
public  COSObjectremove(int index)
     Remove the object at index from the collection.
Parameters:
  index - The index of the object to remove from the collection.
public  voidrestoreState(Object object)
    
public  ObjectsaveState()
    
public  COSObjectset(int i, COSObject object)
     Replace the object at index i with object.
public  intsize()
     The number of elements in this.
protected  voidtriggerChanged(int slot, COSObject oldValue, COSObject newValue)
    


Constructor Detail
COSArray
protected COSArray()(Code)



COSArray
protected COSArray(int size)(Code)



COSArray
protected COSArray(COSArray array)(Code)




Method Detail
accept
public java.lang.Object accept(ICOSObjectVisitor visitor) throws COSVisitorException(Code)



add
public COSArray add(COSObject object)(Code)
Add a COSObject to the collection.

This method takes care of change propagation for incremental writing.

this method should be used by the application level programmer to ensure he deals not with references.


Parameters:
  object - the object to be added this



add
public COSArray add(int index, COSObject object)(Code)
Add a COSObject to the collection.

This method takes care of change propagation for incremental writing.

this method should be used by the application level programmer to ensure he deals not with references.


Parameters:
  index - The index where to insert object
Parameters:
  object - the object to be added this



asArray
public COSArray asArray()(Code)



basicAddPropagate
protected COSArray basicAddPropagate(int index, COSDocumentElement element)(Code)
add a document element (an object or a reference) to the collection.

this method should only be used for low level programming (parser).


Parameters:
  index - The index where to insert object
Parameters:
  element - the element to be added this



basicAddPropagate
protected COSArray basicAddPropagate(COSDocumentElement element)(Code)
Add a document element (an object or a reference) to the collection.

This method should only be used for low level programming (parser).


Parameters:
  element - the element to be added The receiver.



basicAddSilent
public COSArray basicAddSilent(COSDocumentElement element)(Code)
Add a document element (an object or a reference) to the collection.

The change is not propagated.

This should not be used by the application level programmer. It is public for package visibility reasons.
Parameters:
  element - the element to be added The receiver.



basicClearPropagate
protected void basicClearPropagate()(Code)
Remove all elements from the receiver.



basicGet
public COSDocumentElement basicGet(int index)(Code)
Get the COSDocumentElement (an object or a reference) from this at the specified index.

This method should only be used for low level programming.
Parameters:
  index - The index into this Get the COSDocumentElement (an object or a reference)from this at the specified index.




basicIndexOf
protected int basicIndexOf(COSDocumentElement element)(Code)
The index within this where element can be found or -1.
Parameters:
  element - The element to be searched within this. The index of element or -1 if nothing found.



basicIterator
public Iterator basicIterator()(Code)
An iterator that returns all contained COSDocumentElement instances without dereferencing.

This should be used in low level programming.

An iterator that returns all contained COSDocumentElementinstances without dereferencing.



basicRemovePropagate
protected boolean basicRemovePropagate(COSDocumentElement otherElement)(Code)
Remove otherElement from this.
Parameters:
  otherElement - The element to be removed. true if element was removed.



basicRemovePropagate
protected COSDocumentElement basicRemovePropagate(int index)(Code)
Remove element at index.
Parameters:
  index - The index within this to be removed. The COSDocumentElement that was removed at the specifiedindex.



basicSetPropagate
protected COSDocumentElement basicSetPropagate(int i, COSDocumentElement element)(Code)
replace the object at index <i with element.
Parameters:
  i - the index
Parameters:
  element - the object to put at the specified index The previously contained object



basicToString
protected String basicToString()(Code)



clear
public void clear()(Code)
Remove all elements from this.



copyBasic
protected COSObject copyBasic()(Code)



copyDeep
public COSObject copyDeep(Map copied)(Code)



copyShallow
public COSObject copyShallow()(Code)



copySubGraph
protected COSObject copySubGraph(Map copied)(Code)



create
public static COSArray create()(Code)
Create an empty COSArray . Create an empty COSArray.



create
public static COSArray create(int size)(Code)
Create an empty COSArray with a preallocated size. Create an empty COSArray.



createWith
public static COSArray createWith(float a, float b, float c, float d)(Code)
Shortcut for fast creation of rectangle arrays
Parameters:
  a -
Parameters:
  b -
Parameters:
  c -
Parameters:
  d - a new COSArray



createWith
public static COSArray createWith(float a, float b, float c, float d, float e, float f)(Code)
Shortcut for fast creation of matrix arrays
Parameters:
  a -
Parameters:
  b -
Parameters:
  c -
Parameters:
  d -
Parameters:
  e -
Parameters:
  f - a new COSArray



equals
public boolean equals(Object o)(Code)



equals
protected boolean equals(Object o, Set visited)(Code)



get
public COSObject get(int index)(Code)
The COSObject at the given index. Any index outisde the valid array range results in COSNull (compare Adobe Core ApI Reference).
Parameters:
  index - The index of the COSObject to select from this. The COSObject at the given index or COSNull.



getObjects
public List getObjects()(Code)
A copy of all COSObject's in this.

Indirect objects and dangling references are handled by this method.

A copy of all COSObject's in this.



hashCode
public int hashCode()(Code)
ATTENTION: this implementation returns a hash code that does not remain constant when manipulating the arrays content
See Also:   Object.hashCode



indexOf
public int indexOf(COSObject object)(Code)
The index of object within this or -1 if not found.
Parameters:
  object - The object to be searched within this. The index of object within this or -1 if notfound.



isEmpty
public boolean isEmpty()(Code)
true if this.size() == 0. true if this.size() == 0.



iterator
public java.util.Iterator iterator()(Code)



referenceIndirect
public COSIndirectObject referenceIndirect(COSObject object)(Code)



remove
public boolean remove(COSObject object)(Code)
Remove object from this. If object is not contained, nothing happens.

This method cycles all elements wich may cause heavy lazy loading.


Parameters:
  object - The object to remove from this. true if object was removed.



remove
public COSObject remove(int index)(Code)
Remove the object at index from the collection.
Parameters:
  index - The index of the object to remove from the collection. The object previously stored at the index.



restoreState
public void restoreState(Object object)(Code)



saveState
public Object saveState()(Code)



set
public COSObject set(int i, COSObject object)(Code)
Replace the object at index i with object.
Parameters:
  i - The index
Parameters:
  object - The object to put at the specified index The previuosly referenced object



size
public int size()(Code)
The number of elements in this. The number of elements in this.



triggerChanged
protected void triggerChanged(int slot, COSObject oldValue, COSObject newValue)(Code)



Fields inherited from de.intarsys.pdf.cos.COSCompositeObject
protected List objectListeners(Code)(Java Doc)

Methods inherited from de.intarsys.pdf.cos.COSCompositeObject
public void addObjectListener(ICOSObjectListener listener)(Code)(Java Doc)
public ICOSContainer associate(ICOSContainer newContainer, COSObject object)(Code)(Java Doc)
public COSDocumentElement containable(COSObject object)(Code)(Java Doc)
final public COSObject copyDeep()(Code)(Java Doc)
public COSObject copyDeep(Map copied)(Code)(Java Doc)
public ICOSContainer disassociate(ICOSContainer oldContainer, COSObject object)(Code)(Java Doc)
public synchronized Object getAttribute(Object key)(Code)(Java Doc)
public boolean isObjectListenerAvailable()(Code)(Java Doc)
public boolean isPrimitive()(Code)(Java Doc)
public int referenceCount()(Code)(Java Doc)
public COSIndirectObject referenceIndirect(COSObject object)(Code)(Java Doc)
public void register(COSDocumentElement object)(Code)(Java Doc)
protected void registerWith(COSDocument doc)(Code)(Java Doc)
public synchronized Object removeAttribute(Object key)(Code)(Java Doc)
public void removeObjectListener(ICOSObjectListener listener)(Code)(Java Doc)
public ICOSContainer restoreStateContainer(ICOSContainer pContainer)(Code)(Java Doc)
public ICOSContainer saveStateContainer()(Code)(Java Doc)
public synchronized Object setAttribute(Object key, Object value)(Code)(Java Doc)
protected void triggerChanged(Object slot, Object oldValue, Object newValue)(Code)(Java Doc)
public void willChange(COSObject change)(Code)(Java Doc)

Fields inherited from de.intarsys.pdf.cos.COSObject
final public static ICOSContainer CONSTANT_CONTAINER(Code)(Java Doc)
final public static ICOSContainer NULL_CONTAINER(Code)(Java Doc)
final public static Object SLOT_CONTAINER(Code)(Java Doc)
protected ICOSContainer container(Code)(Java Doc)

Methods inherited from de.intarsys.pdf.cos.COSObject
protected ICOSContainer addContainer(ICOSContainer newContainer)(Code)(Java Doc)
abstract public void addObjectListener(ICOSObjectListener listener)(Code)(Java Doc)
public COSArray asArray()(Code)(Java Doc)
public COSBoolean asBoolean()(Code)(Java Doc)
public COSDictionary asDictionary()(Code)(Java Doc)
public COSFixed asFixed()(Code)(Java Doc)
public COSInteger asInteger()(Code)(Java Doc)
public COSName asName()(Code)(Java Doc)
public COSNull asNull()(Code)(Java Doc)
public COSNumber asNumber()(Code)(Java Doc)
public COSStream asStream()(Code)(Java Doc)
public COSString asString()(Code)(Java Doc)
abstract public Iterator basicIterator()(Code)(Java Doc)
protected void basicSetContainer(ICOSContainer newContainer)(Code)(Java Doc)
abstract protected String basicToString()(Code)(Java Doc)
public COSObject beConstant()(Code)(Java Doc)
public COSIndirectObject beIndirect()(Code)(Java Doc)
public COSDocumentElement containable()(Code)(Java Doc)
abstract protected COSObject copyBasic()(Code)(Java Doc)
abstract public COSObject copyDeep()(Code)(Java Doc)
abstract public COSObject copyDeep(Map copied)(Code)(Java Doc)
final public COSObject copyOptional()(Code)(Java Doc)
public COSObject copyShallow()(Code)(Java Doc)
protected COSDocumentElement copyShallowNested()(Code)(Java Doc)
final public COSObject copySubGraph()(Code)(Java Doc)
protected COSObject copySubGraph(Map copied)(Code)(Java Doc)
public COSObject dereference()(Code)(Java Doc)
public ICOSContainer getContainer()(Code)(Java Doc)
public COSDocument getDoc()(Code)(Java Doc)
public COSIndirectObject getIndirectObject()(Code)(Java Doc)
protected boolean hasNavigationPathTo(COSObject other)(Code)(Java Doc)
public boolean isDangling()(Code)(Java Doc)
public boolean isIndirect()(Code)(Java Doc)
public boolean isNull()(Code)(Java Doc)
public boolean isNumber()(Code)(Java Doc)
abstract public boolean isObjectListenerAvailable()(Code)(Java Doc)
abstract public boolean isPrimitive()(Code)(Java Doc)
public boolean isSwapped()(Code)(Java Doc)
abstract public Iterator iterator()(Code)(Java Doc)
protected ICOSContainer removeContainer(ICOSContainer oldContainer)(Code)(Java Doc)
abstract public void removeObjectListener(ICOSObjectListener listener)(Code)(Java Doc)
public void restoreState(Object saveState)(Code)(Java Doc)
public String stringValue()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
abstract protected void triggerChanged(Object slot, Object oldValue, Object newValue)(Code)(Java Doc)

Methods inherited from de.intarsys.pdf.cos.COSDocumentElement
abstract public Object accept(ICOSObjectVisitor visitor) throws COSVisitorException(Code)(Java Doc)
abstract protected ICOSContainer addContainer(ICOSContainer newContainer)(Code)(Java Doc)
abstract public COSDocumentElement containable()(Code)(Java Doc)
abstract protected COSObject copyDeep(Map copied)(Code)(Java Doc)
abstract protected COSDocumentElement copyShallowNested()(Code)(Java Doc)
abstract public COSObject dereference()(Code)(Java Doc)
protected boolean equals(Object o, Set visited)(Code)(Java Doc)
abstract public COSDocument getDoc()(Code)(Java Doc)
public void handleException(COSRuntimeException ex) throws COSRuntimeException(Code)(Java Doc)
public boolean isReference()(Code)(Java Doc)
public boolean isSwapped()(Code)(Java Doc)
abstract protected void registerWith(COSDocument doc)(Code)(Java Doc)
abstract protected ICOSContainer removeContainer(ICOSContainer oldContainer)(Code)(Java Doc)

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.