Java Doc for PjStream.java in  » PDF » pjx » com » etymon » pj » object » 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 » pjx » com.etymon.pj.object 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.etymon.pj.object.BaseObject
      com.etymon.pj.object.PjObject
         com.etymon.pj.object.PjStream

PjStream
public class PjStream extends PjObject (Code)
A representation of the PDF stream type.
author:
   Nassib Nassar


Field Summary
protected  PjStreamDictionary_d
    
protected  byte[]_s
    

Constructor Summary
public  PjStream(byte[] s)
     Creates a stream as a wrapper around a byte array.
public  PjStream(PjStreamDictionary d, byte[] s)
     Creates a stream as a wrapper around a PjStreamDictionary and byte array.

Method Summary
public  PjStreamascii85Decode()
     Decode this stream if it is compressed with the Ascii85 algorithm.
public static  byte[]ascii85Decode(byte[] src)
    
public static  byte[]ascii85Encode(byte[] src)
    
static  char[]ascii85EncodeWord(long word)
    
static  longbytesToLong(byte[] b, int offset, int len)
    
public  Objectclone()
     Returns a deep copy of this object.
public  PjStreamflateCompress()
     Compress this stream with the Flate algorithm if it is not already compressed.
public  PjStreamflateDecompress()
     Decompresses this stream if it is compressed with the Flate algorithm.
public  byte[]getBuffer()
     Returns the byte array used in the representation of this stream.
public  PjStreamDictionarygetStreamDictionary()
     Returns the PjStreamDictionary used in the representation of this stream.
public  voidrenumber(Hashtable map)
     Renumbers object references within this object.
public  voidsetLength()
     Sets the Length field in the stream dictionary to accurately reflect the length of the stream.
static  longtoWord(byte[] b, int offset, int sigDigits)
    
public  longwritePdf(OutputStream os)
     Writes this PDF stream to a stream in PDF format.
Parameters:
  os - the stream to write to.

Field Detail
_d
protected PjStreamDictionary _d(Code)



_s
protected byte[] _s(Code)




Constructor Detail
PjStream
public PjStream(byte[] s)(Code)
Creates a stream as a wrapper around a byte array.
Parameters:
  s - the byte array to use for this stream.



PjStream
public PjStream(PjStreamDictionary d, byte[] s)(Code)
Creates a stream as a wrapper around a PjStreamDictionary and byte array.
Parameters:
  d - the dictionary to use for this stream.
Parameters:
  s - the byte array to use for this stream.




Method Detail
ascii85Decode
public PjStream ascii85Decode() throws InvalidPdfObjectException(Code)
Decode this stream if it is compressed with the Ascii85 algorithm. a cloned, unencoded version of this stream; orthis stream if it is not marked as being compressed withAscii85.
exception:
  InvalidPdfObjectException - if an invalid objecttype is encountered.



ascii85Decode
public static byte[] ascii85Decode(byte[] src)(Code)



ascii85Encode
public static byte[] ascii85Encode(byte[] src)(Code)



ascii85EncodeWord
static char[] ascii85EncodeWord(long word)(Code)



bytesToLong
static long bytesToLong(byte[] b, int offset, int len)(Code)



clone
public Object clone() throws CloneNotSupportedException(Code)
Returns a deep copy of this object. a deep copy of this object.
exception:
  CloneNotSupportedException - if the instance can not be cloned.



flateCompress
public PjStream flateCompress() throws InvalidPdfObjectException(Code)
Compress this stream with the Flate algorithm if it is not already compressed. a cloned, compressed version of this stream; orthis stream if it is already compressed.
exception:
  InvalidPdfObjectException - if an invalid objecttype is encountered.



flateDecompress
public PjStream flateDecompress() throws InvalidPdfObjectException(Code)
Decompresses this stream if it is compressed with the Flate algorithm. a cloned, uncompressed version of this stream; orthis stream if it is not marked as being compressed withFlate.
exception:
  InvalidPdfObjectException - if an invalid objecttype is encountered.



getBuffer
public byte[] getBuffer()(Code)
Returns the byte array used in the representation of this stream. the byte array used in the representation of thisstream.



getStreamDictionary
public PjStreamDictionary getStreamDictionary()(Code)
Returns the PjStreamDictionary used in the representation of this stream. the PjStreamDictionary used in the representation of thisstream.



renumber
public void renumber(Hashtable map)(Code)
Renumbers object references within this object. This method calls itself recursively to comprehensively renumber all objects contained within this object.
Parameters:
  map - the table of object number mappings. Eachobject number is looked up by key in the hash table, andthe associated value is assigned as the new object number.The map hash table should consist of PjNumber keys andPjReference values.



setLength
public void setLength()(Code)
Sets the Length field in the stream dictionary to accurately reflect the length of the stream. It is not normally necessary to call this method, because it gets called implicitly by methods that output the object in PDF format.



toWord
static long toWord(byte[] b, int offset, int sigDigits)(Code)



writePdf
public long writePdf(OutputStream os) throws IOException(Code)
Writes this PDF stream to a stream in PDF format.
Parameters:
  os - the stream to write to. the number of bytes written.
exception:
  IOException - if an I/O error occurs.



Methods inherited from com.etymon.pj.object.PjObject
public void renumber(Hashtable map)(Code)(Java Doc)

Methods inherited from com.etymon.pj.object.BaseObject
abstract public Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public static long write(OutputStream os, char c) throws IOException(Code)(Java Doc)
public static long write(OutputStream os, byte[] b) throws IOException(Code)(Java Doc)
public static long write(OutputStream os, Object obj) throws IOException(Code)(Java Doc)
abstract public long writePdf(OutputStream os) throws IOException(Code)(Java Doc)
public static long writeln(OutputStream os, Object obj) throws IOException(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.