Java Doc for COSStream.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.COSStream

COSStream
public class COSStream extends COSCompositeObject (Code)
An object representing stream data in a PDF document. Unlike a string, stream data is not restricted in length. Stream data may be encoded with the filter implementation.


Field Summary
final public static  COSNameDK_DP
    
final public static  COSNameDK_DecodeParms
    
final public static  COSNameDK_F
    
final public static  COSNameDK_FDecodeParams
    
final public static  COSNameDK_FFilter
    
final public static  COSNameDK_Filter
    
final public static  COSNameDK_Length
    
final public static  COSNameDK_Resources
    
final public static  ObjectSLOT_BYTES
    

Constructor Summary
protected  COSStream(COSDictionary newDict)
     COSStream constructor.
Parameters:
  newDict - The stream dictionary for the new stream.
protected  COSStream(COSStream stream)
    

Method Summary
public  java.lang.Objectaccept(ICOSObjectVisitor visitor)
    
public  voidaddFilter(COSName name)
     Add a new filter to this.
public  voidaddObjectListener(ICOSObjectListener listener)
    
public  COSStreamasStream()
    
public  IteratorbasicIterator()
    
public  voidbasicSetDecodedBytes(byte[] newBytes)
     Set the streams logical content.
public  voidbasicSetEncodedBytes(byte[] newBytes)
     Set the streams physical content.
protected  StringbasicToString()
    
protected  COSObjectcopyBasic()
    
public  COSStreamcopyDecodeFirst()
     A copy of this, bytes decoded.
public  COSObjectcopyDeep(Map copied)
    
public  COSObjectcopyShallow()
    
protected  COSObjectcopySubGraph(Map copied)
    
public static  COSStreamcreate(COSDictionary dict)
     Create a new COSStream .
Parameters:
  dict - An optional dictionary to be used as the streams dictionary.
protected  byte[]doDecode()
    
protected  byte[]doDecode(COSName filterName, COSDictionary options, byte[] bytes, int offset, int length)
     Perform the decoding process of the underlying byte stream.
Parameters:
  filterName - The name of a filter to use for this step.
Parameters:
  options - The options to use for the filter.
Parameters:
  bytes - The bytes to decode.
Parameters:
  offset - The offset to start.
Parameters:
  length - The length to be decoded.
protected  voiddoEncode()
    
protected  byte[]doEncode(COSName filterName, COSDictionary options, byte[] bytes, int offset, int length)
     Perform the encoding process of the underlying byte stream.
Parameters:
  filterName - The name of a filter to use for this step.
Parameters:
  options - The options to use for the filter.
Parameters:
  bytes - The bytes to encode .
Parameters:
  offset - The offset to start.
Parameters:
  length - The length to be encoded.
public  intgetAnyLength()
     The declared or real length for this.
public static  COSObjectgetDecodeParams(COSDictionary dict)
     The options or an array of options for filtering.
public static  COSDictionarygetDecodeParams(COSDictionary dict, COSName name)
     The options corresponding to the first occurence of the filter name.
public  COSObjectgetDecodeParams()
     The options or an array of options for filtering.
public  COSObjectgetDecodeParams(COSName name)
     The options corresponding to the first occurence of the filter name.
public  byte[]getDecodedBytes()
     The unfiltered (logical) stream content.
public  byte[]getDecodedBytesWritable()
    
public  COSDictionarygetDict()
    
public  byte[]getEncodedBytes()
     The filtered (physical) stream content.
public static  COSObjectgetFilters(COSDictionary dict)
     Return the filter or the collection of filters for the stream.
public  COSObjectgetFilters()
     Return the filter or the collection of filters for the stream.
public  COSDictionarygetFirstDecodeParam()
     A dictionary with filter options or the first element of an array of such dictionaries for each filter.
public  COSNamegetFirstFilter()
     The filter or the first element of the collection of filters for the stream.
public  intgetLength()
    
public static  booleanhasFilter(COSDictionary dict, COSName name)
     true if the stream hs declared a filter name.
Parameters:
  name - The name of the filter.
public  booleanhasFilter(COSName name)
     true if the stream hs declared a filter name.
Parameters:
  name - The name of the filter.
public static  booleanisExternal(COSDictionary dict)
     true if the stream dictionary contains the F key.
public  booleanisExternal()
     true if the stream dictionary contains the F key.
public  Iteratoriterator()
    
protected  voidparseFKeyedFile()
     Parse the file referenced by the F key in this stream and set as the filtered content.
public  voidremoveFilters()
     Remove all filters from this.
public  voidremoveObjectListener(ICOSObjectListener listener)
    
public  voidrestoreState(Object object)
    
public  ObjectsaveState()
    
public  voidsetDecodedBytes(byte[] newBytes)
    
public  voidsetEncodedBytes(byte[] newBytes)
     Set the stream physical content.

Field Detail
DK_DP
final public static COSName DK_DP(Code)



DK_DecodeParms
final public static COSName DK_DecodeParms(Code)



DK_F
final public static COSName DK_F(Code)



DK_FDecodeParams
final public static COSName DK_FDecodeParams(Code)



DK_FFilter
final public static COSName DK_FFilter(Code)



DK_Filter
final public static COSName DK_Filter(Code)



DK_Length
final public static COSName DK_Length(Code)



DK_Resources
final public static COSName DK_Resources(Code)



SLOT_BYTES
final public static Object SLOT_BYTES(Code)




Constructor Detail
COSStream
protected COSStream(COSDictionary newDict)(Code)
COSStream constructor.
Parameters:
  newDict - The stream dictionary for the new stream. Can be null, a newdictionary will be created.



COSStream
protected COSStream(COSStream stream)(Code)




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



addFilter
public void addFilter(COSName name)(Code)
Add a new filter to this.
Parameters:
  name - The logical naem of the filter.



addObjectListener
public void addObjectListener(ICOSObjectListener listener)(Code)



asStream
public COSStream asStream()(Code)



basicIterator
public Iterator basicIterator()(Code)



basicSetDecodedBytes
public void basicSetDecodedBytes(byte[] newBytes)(Code)
Set the streams logical content.
Parameters:
  newBytes - the logical content for the stream



basicSetEncodedBytes
public void basicSetEncodedBytes(byte[] newBytes)(Code)
Set the streams physical content.
Parameters:
  newBytes - the physical content for the stream



basicToString
protected String basicToString()(Code)



copyBasic
protected COSObject copyBasic()(Code)



copyDecodeFirst
public COSStream copyDecodeFirst() throws IOException(Code)
A copy of this, bytes decoded. A copy of this, bytes decoded.
throws:
  IOException -



copyDeep
public COSObject copyDeep(Map copied)(Code)



copyShallow
public COSObject copyShallow()(Code)



copySubGraph
protected COSObject copySubGraph(Map copied)(Code)



create
public static COSStream create(COSDictionary dict)(Code)
Create a new COSStream .
Parameters:
  dict - An optional dictionary to be used as the streams dictionary. Create a new COSStream.



doDecode
protected byte[] doDecode() throws IOException(Code)
Decode the filtered stream content using the filters defined in the /Filter entry in the stream dictionary The decoded bytes.
throws:
  IOException -



doDecode
protected byte[] doDecode(COSName filterName, COSDictionary options, byte[] bytes, int offset, int length) throws IOException(Code)
Perform the decoding process of the underlying byte stream.
Parameters:
  filterName - The name of a filter to use for this step.
Parameters:
  options - The options to use for the filter.
Parameters:
  bytes - The bytes to decode.
Parameters:
  offset - The offset to start.
Parameters:
  length - The length to be decoded. The decoded bytes.
throws:
  IOException -



doEncode
protected void doEncode() throws IOException(Code)
encode the filtered stream content using the filters defined in the /Filter entry in the stream dictionary in reverse order
throws:
  IOException -



doEncode
protected byte[] doEncode(COSName filterName, COSDictionary options, byte[] bytes, int offset, int length) throws IOException(Code)
Perform the encoding process of the underlying byte stream.
Parameters:
  filterName - The name of a filter to use for this step.
Parameters:
  options - The options to use for the filter.
Parameters:
  bytes - The bytes to encode .
Parameters:
  offset - The offset to start.
Parameters:
  length - The length to be encoded. The encoded bytes.
throws:
  IOException -



getAnyLength
public int getAnyLength()(Code)
The declared or real length for this. The declared or real length for this.



getDecodeParams
public static COSObject getDecodeParams(COSDictionary dict)(Code)
The options or an array of options for filtering. The options or an array of options for filtering.



getDecodeParams
public static COSDictionary getDecodeParams(COSDictionary dict, COSName name)(Code)
The options corresponding to the first occurence of the filter name. The options corresponding to the first occurence of the filtername.



getDecodeParams
public COSObject getDecodeParams()(Code)
The options or an array of options for filtering. The options or an array of options for filtering.



getDecodeParams
public COSObject getDecodeParams(COSName name)(Code)
The options corresponding to the first occurence of the filter name. The options corresponding to the first occurence of the filtername.



getDecodedBytes
public byte[] getDecodedBytes()(Code)
The unfiltered (logical) stream content. It is not intended to manipulate the byte array directly. The unfiltered (logical) stream content
throws:
  IOException -



getDecodedBytesWritable
public byte[] getDecodedBytesWritable()(Code)
The unfiltered content as in getDecodedBytes, but allow the caller to manipulate the result by copying/not caching the returned bytes The unfiltered content as in getDecodedBytes



getDict
public COSDictionary getDict()(Code)
The stream dictionary The stream dictionary



getEncodedBytes
public byte[] getEncodedBytes()(Code)
The filtered (physical) stream content. If it must be generated first, then the content length is adjusted as a side effect. It is not intended to manipulate the byte array directly. The filtered (physical) stream content



getFilters
public static COSObject getFilters(COSDictionary dict)(Code)
Return the filter or the collection of filters for the stream. The filter or the collection of filters for the stream.



getFilters
public COSObject getFilters()(Code)
Return the filter or the collection of filters for the stream. The filter or the collection of filters for the stream.



getFirstDecodeParam
public COSDictionary getFirstDecodeParam()(Code)
A dictionary with filter options or the first element of an array of such dictionaries for each filter. A dictionary with filter options or the first element of an arrayof such dictionaries for each filter.



getFirstFilter
public COSName getFirstFilter()(Code)
The filter or the first element of the collection of filters for the stream. The filter or the first element of the collection of filters forthe stream.



getLength
public int getLength()(Code)
The length of the filtered content The length of the filtered content



hasFilter
public static boolean hasFilter(COSDictionary dict, COSName name)(Code)
true if the stream hs declared a filter name.
Parameters:
  name - The name of the filter. true if the stream hs declared a filtername.



hasFilter
public boolean hasFilter(COSName name)(Code)
true if the stream hs declared a filter name.
Parameters:
  name - The name of the filter. true if the stream hs declared a filtername.



isExternal
public static boolean isExternal(COSDictionary dict)(Code)
true if the stream dictionary contains the F key. true if the stream dictionary contains the F key.



isExternal
public boolean isExternal()(Code)
true if the stream dictionary contains the F key. true if the stream dictionary contains the F key.



iterator
public Iterator iterator()(Code)



parseFKeyedFile
protected void parseFKeyedFile()(Code)
Parse the file referenced by the F key in this stream and set as the filtered content.



removeFilters
public void removeFilters()(Code)
Remove all filters from this.



removeObjectListener
public void removeObjectListener(ICOSObjectListener listener)(Code)



restoreState
public void restoreState(Object object)(Code)



saveState
public Object saveState()(Code)



setDecodedBytes
public void setDecodedBytes(byte[] newBytes)(Code)
Set the streams logical content
Parameters:
  newBytes - The logical content for the stream



setEncodedBytes
public void setEncodedBytes(byte[] newBytes)(Code)
Set the stream physical content.
Parameters:
  newBytes - the physical content for the stream



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.