Java Doc for COSStreamArray.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.cos.COSBase
      org.pdfbox.cos.COSDictionary
         org.pdfbox.cos.COSStream
            org.pdfbox.pdmodel.common.COSStreamArray

COSStreamArray
public class COSStreamArray extends COSStream (Code)
This will take an array of streams and sequence them together.
author:
   Ben Litchfield
version:
   $Revision: 1.9 $



Constructor Summary
public  COSStreamArray(COSArray array)
     Constructor.

Method Summary
public  Objectaccept(ICOSVisitor visitor)
     visitor pattern double dispatch method.
Parameters:
  visitor - The object to notify when visiting this object.
public  voidappendStream(COSStream streamToAppend)
     Appends a new stream to the array that represents this object's stream.
public  OutputStreamcreateFilteredStream()
     This will create a new stream for which filtered byte should be written to.
public  OutputStreamcreateFilteredStream(COSBase expectedLength)
     This will create a new stream for which filtered byte should be written to.
public  OutputStreamcreateUnfilteredStream()
     This will create an output stream that can be written to.
public  COSDictionarygetDictionary()
     This will get the dictionary that is associated with this stream.
public  COSBasegetDictionaryObject(COSName key)
     This will get an object from this streams dictionary and dereference it if necessary.
Parameters:
  key - The key to the object.
public  InputStreamgetFilteredStream()
     This will get the stream with all of the filters applied.
public  COSBasegetFilters()
     This will return the filters to apply to the byte stream the method will return.
public  COSBasegetItem(COSName key)
     This will get an object from this streams dictionary.
Parameters:
  key - The key to the object.
public  RandomAccessgetScratchFile()
     This will get the scratch file associated with this stream.
public  ListgetStreamTokens()
     This will get all the tokens in the stream.
public  InputStreamgetUnfilteredStream()
     This will get the logical content stream with none of the filters.
public  voidsetFilters(COSBase filters)
     set the filters to be applied to the stream.
public  StringtoString()
    


Constructor Detail
COSStreamArray
public COSStreamArray(COSArray array)(Code)
Constructor.
Parameters:
  array - The array of COSStreams to concatenate together.




Method Detail
accept
public Object accept(ICOSVisitor visitor) throws COSVisitorException(Code)
visitor pattern double dispatch method.
Parameters:
  visitor - The object to notify when visiting this object. any object, depending on the visitor implementation, or null
throws:
  COSVisitorException - If an error occurs while visiting this object.



appendStream
public void appendStream(COSStream streamToAppend)(Code)
Appends a new stream to the array that represents this object's stream.
Parameters:
  streamToAppend - The stream to append.



createFilteredStream
public OutputStream createFilteredStream() throws IOException(Code)
This will create a new stream for which filtered byte should be written to. You probably don't want this but want to use the createUnfilteredStream, which is used to write raw bytes to. A stream that can be written to.
throws:
  IOException - If there is an error creating the stream.



createFilteredStream
public OutputStream createFilteredStream(COSBase expectedLength) throws IOException(Code)
This will create a new stream for which filtered byte should be written to. You probably don't want this but want to use the createUnfilteredStream, which is used to write raw bytes to.
Parameters:
  expectedLength - An entry where a length is expected. A stream that can be written to.
throws:
  IOException - If there is an error creating the stream.



createUnfilteredStream
public OutputStream createUnfilteredStream() throws IOException(Code)
This will create an output stream that can be written to. An output stream which raw data bytes should be written to.
throws:
  IOException - If there is an error creating the stream.



getDictionary
public COSDictionary getDictionary()(Code)
This will get the dictionary that is associated with this stream. the object that is associated with this stream.



getDictionaryObject
public COSBase getDictionaryObject(COSName key)(Code)
This will get an object from this streams dictionary and dereference it if necessary.
Parameters:
  key - The key to the object. The dictionary object with the key or null if one does not exist.



getFilteredStream
public InputStream getFilteredStream() throws IOException(Code)
This will get the stream with all of the filters applied. the bytes of the physical (endoced) stream
throws:
  IOException - when encoding/decoding causes an exception



getFilters
public COSBase getFilters()(Code)
This will return the filters to apply to the byte stream the method will return. - null if no filters are to be applied - a COSName if one filter is to be applied - a COSArray containing COSNames if multiple filters are to be applied the COSBase object representing the filters



getItem
public COSBase getItem(COSName key)(Code)
This will get an object from this streams dictionary.
Parameters:
  key - The key to the object. The dictionary object with the key or null if one does not exist.



getScratchFile
public RandomAccess getScratchFile()(Code)
This will get the scratch file associated with this stream. The scratch file where this stream is being stored.



getStreamTokens
public List getStreamTokens() throws IOException(Code)
This will get all the tokens in the stream. All of the tokens in the stream.
throws:
  IOException - If there is an error parsing the stream.



getUnfilteredStream
public InputStream getUnfilteredStream() throws IOException(Code)
This will get the logical content stream with none of the filters. the bytes of the logical (decoded) stream
throws:
  IOException - when encoding/decoding causes an exception



setFilters
public void setFilters(COSBase filters) throws IOException(Code)
set the filters to be applied to the stream.
Parameters:
  filters - The filters to set on this stream.
throws:
  IOException - If there is an error clearing the old filters.



toString
public String toString()(Code)



Methods inherited from org.pdfbox.cos.COSStream
public Object accept(ICOSVisitor visitor) throws COSVisitorException(Code)(Java Doc)
public OutputStream createFilteredStream() throws IOException(Code)(Java Doc)
public OutputStream createFilteredStream(COSBase expectedLength) throws IOException(Code)(Java Doc)
public OutputStream createUnfilteredStream() throws IOException(Code)(Java Doc)
public InputStream getFilteredStream() throws IOException(Code)(Java Doc)
public COSBase getFilters()(Code)(Java Doc)
public RandomAccess getScratchFile()(Code)(Java Doc)
public List getStreamTokens() throws IOException(Code)(Java Doc)
public InputStream getUnfilteredStream() throws IOException(Code)(Java Doc)
public void replaceWithStream(COSStream stream)(Code)(Java Doc)
public void setFilters(COSBase filters) throws IOException(Code)(Java Doc)

Methods inherited from org.pdfbox.cos.COSDictionary
public Object accept(ICOSVisitor visitor) throws COSVisitorException(Code)(Java Doc)
public void addAll(COSDictionary dic)(Code)(Java Doc)
public void clear()(Code)(Java Doc)
public boolean containsValue(Object value)(Code)(Java Doc)
public boolean getBoolean(String key, boolean defaultValue)(Code)(Java Doc)
public boolean getBoolean(COSName key, boolean defaultValue)(Code)(Java Doc)
public Calendar getDate(String key) throws IOException(Code)(Java Doc)
public Calendar getDate(COSName key) throws IOException(Code)(Java Doc)
public Calendar getDate(String key, Calendar defaultValue) throws IOException(Code)(Java Doc)
public Calendar getDate(COSName key, Calendar defaultValue) throws IOException(Code)(Java Doc)
public COSBase getDictionaryObject(String key)(Code)(Java Doc)
public COSBase getDictionaryObject(String firstKey, String secondKey)(Code)(Java Doc)
public COSBase getDictionaryObject(String[] keyList)(Code)(Java Doc)
public COSBase getDictionaryObject(COSName key)(Code)(Java Doc)
public Calendar getEmbeddedDate(String embedded, String key) throws IOException(Code)(Java Doc)
public Calendar getEmbeddedDate(String embedded, COSName key) throws IOException(Code)(Java Doc)
public Calendar getEmbeddedDate(String embedded, String key, Calendar defaultValue) throws IOException(Code)(Java Doc)
public Calendar getEmbeddedDate(String embedded, COSName key, Calendar defaultValue) throws IOException(Code)(Java Doc)
public int getEmbeddedInt(String embeddedDictionary, String key)(Code)(Java Doc)
public int getEmbeddedInt(String embeddedDictionary, COSName key)(Code)(Java Doc)
public int getEmbeddedInt(String embeddedDictionary, String key, int defaultValue)(Code)(Java Doc)
public int getEmbeddedInt(String embeddedDictionary, COSName key, int defaultValue)(Code)(Java Doc)
public String getEmbeddedString(String embedded, String key)(Code)(Java Doc)
public String getEmbeddedString(String embedded, COSName key)(Code)(Java Doc)
public String getEmbeddedString(String embedded, String key, String defaultValue)(Code)(Java Doc)
public String getEmbeddedString(String embedded, COSName key, String defaultValue)(Code)(Java Doc)
public float getFloat(String key)(Code)(Java Doc)
public float getFloat(COSName key)(Code)(Java Doc)
public float getFloat(String key, float defaultValue)(Code)(Java Doc)
public float getFloat(COSName key, float defaultValue)(Code)(Java Doc)
public int getInt(String key)(Code)(Java Doc)
public int getInt(COSName key)(Code)(Java Doc)
public int getInt(String[] keyList, int defaultValue)(Code)(Java Doc)
public int getInt(String key, int defaultValue)(Code)(Java Doc)
public int getInt(COSName key, int defaultValue)(Code)(Java Doc)
public COSBase getItem(COSName key)(Code)(Java Doc)
public COSName getKeyForValue(Object value)(Code)(Java Doc)
public long getLong(String key)(Code)(Java Doc)
public long getLong(COSName key)(Code)(Java Doc)
public long getLong(String[] keyList, long defaultValue)(Code)(Java Doc)
public long getLong(String key, long defaultValue)(Code)(Java Doc)
public long getLong(COSName key, long defaultValue)(Code)(Java Doc)
public String getNameAsString(String key)(Code)(Java Doc)
public String getNameAsString(COSName key)(Code)(Java Doc)
public String getNameAsString(String key, String defaultValue)(Code)(Java Doc)
public String getNameAsString(COSName key, String defaultValue)(Code)(Java Doc)
public COSBase getObjectFromPath(String objPath)(Code)(Java Doc)
public String getString(String key)(Code)(Java Doc)
public String getString(COSName key)(Code)(Java Doc)
public String getString(String key, String defaultValue)(Code)(Java Doc)
public String getString(COSName key, String defaultValue)(Code)(Java Doc)
public Collection getValues()(Code)(Java Doc)
public List keyList()(Code)(Java Doc)
public void mergeInto(COSDictionary dic)(Code)(Java Doc)
public void removeItem(COSName key)(Code)(Java Doc)
public void setBoolean(String key, boolean value)(Code)(Java Doc)
public void setBoolean(COSName key, boolean value)(Code)(Java Doc)
public void setDate(String key, Calendar date)(Code)(Java Doc)
public void setDate(COSName key, Calendar date)(Code)(Java Doc)
public void setEmbeddedDate(String embedded, String key, Calendar date)(Code)(Java Doc)
public void setEmbeddedDate(String embedded, COSName key, Calendar date)(Code)(Java Doc)
public void setEmbeddedInt(String embeddedDictionary, String key, int value)(Code)(Java Doc)
public void setEmbeddedInt(String embeddedDictionary, COSName key, int value)(Code)(Java Doc)
public void setEmbeddedString(String embedded, String key, String value)(Code)(Java Doc)
public void setEmbeddedString(String embedded, COSName key, String value)(Code)(Java Doc)
public void setFloat(String key, float value)(Code)(Java Doc)
public void setFloat(COSName key, float value)(Code)(Java Doc)
public void setInt(String key, int value)(Code)(Java Doc)
public void setInt(COSName key, int value)(Code)(Java Doc)
public void setItem(COSName key, COSBase value)(Code)(Java Doc)
public void setItem(COSName key, COSObjectable value)(Code)(Java Doc)
public void setItem(String key, COSObjectable value)(Code)(Java Doc)
public void setItem(String key, COSBase value)(Code)(Java Doc)
public void setLong(String key, long value)(Code)(Java Doc)
public void setLong(COSName key, long value)(Code)(Java Doc)
public void setName(String key, String value)(Code)(Java Doc)
public void setName(COSName key, String value)(Code)(Java Doc)
public void setString(String key, String value)(Code)(Java Doc)
public void setString(COSName key, String value)(Code)(Java Doc)
public int size()(Code)(Java Doc)

Methods inherited from org.pdfbox.cos.COSBase
abstract public Object accept(ICOSVisitor visitor) throws COSVisitorException(Code)(Java Doc)
public COSBase getCOSObject()(Code)(Java Doc)
public FilterManager getFilterManager()(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.