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


java.lang.Object
   de.intarsys.pdf.parser.PDFParser
      de.intarsys.pdf.parser.COSDocumentParser

COSDocumentParser
public class COSDocumentParser extends PDFParser (Code)
A parser for PDF data streams.

The parser will create a object representation of the pdf document using COS level objects.

The parser is a one pass, read everything implementation.




Constructor Summary
public  COSDocumentParser(STDocument doc)
    

Method Summary
protected  COSIndirectObjectcreateObjectReference()
    
public  STDocumentgetDoc()
    
public  booleanisTokenXRefAt(IRandomAccess input, int offset)
    
public  COSObjectparseIndirectObject(IRandomAccess input, ISystemSecurityHandler securityHandler)
     read a pdf style object from the input.
protected  COSObjectparseIndirectObjectBody(IRandomAccess input)
    
protected  COSObjectKeyparseIndirectObjectKey(IRandomAccess input)
    
public  intparseStartXRef(IRandomAccess input)
     the startxref value.
public  COSDictionaryparseTrailer(IRandomAccess input)
     parse the trailer section from the current stream position.
public  intsearchLastStartXRef(IRandomAccess input)
     Searches the offset to the first trailer in the last 1024 bytes of the document.
public  intsearchLinearized(IRandomAccess input)
    


Constructor Detail
COSDocumentParser
public COSDocumentParser(STDocument doc)(Code)




Method Detail
createObjectReference
protected COSIndirectObject createObjectReference() throws IOException, COSLoadException(Code)



getDoc
public STDocument getDoc()(Code)



isTokenXRefAt
public boolean isTokenXRefAt(IRandomAccess input, int offset) throws IOException(Code)



parseIndirectObject
public COSObject parseIndirectObject(IRandomAccess input, ISystemSecurityHandler securityHandler) throws IOException, COSLoadException(Code)
read a pdf style object from the input. see PDF Reference v1.4, chapter 3.2.9 Indirect Objects COSIndirectObject ::= ObjNum GenNum "obj" Object "endobj" The parsed object.
throws:
  IOException -
throws:
  COSLoadException -



parseIndirectObjectBody
protected COSObject parseIndirectObjectBody(IRandomAccess input) throws IOException, COSLoadException(Code)



parseIndirectObjectKey
protected COSObjectKey parseIndirectObjectKey(IRandomAccess input) throws IOException, COSLoadException(Code)



parseStartXRef
public int parseStartXRef(IRandomAccess input) throws IOException, COSLoadException(Code)
the startxref value. the startxref value
throws:
  IOException -
throws:
  COSLoadException -



parseTrailer
public COSDictionary parseTrailer(IRandomAccess input) throws IOException, COSLoadException(Code)
parse the trailer section from the current stream position. see PDF Reference v1.4, chapter 3.4.4 File Trailer DocumentTrailer ::= "trailer" COSDict "startxref" COSNumber the trailer dictionary
throws:
  IOException -
throws:
  COSLoadException -



searchLastStartXRef
public int searchLastStartXRef(IRandomAccess input) throws IOException, COSLoadException(Code)
Searches the offset to the first trailer in the last 1024 bytes of the document. The search goes backwards starting with the last byte. the offset to the first trailer found
throws:
  IOException -
throws:
  COSLoadException -



searchLinearized
public int searchLinearized(IRandomAccess input) throws IOException, COSLoadException(Code)

Parameters:
  input - Returns the offset of the dictionary with linearizationparameters if any.
throws:
  IOException -
throws:
  COSLoadException -



Fields inherited from de.intarsys.pdf.parser.PDFParser
final protected static byte CHARCLASS_ANY(Code)(Java Doc)
final protected static byte CHARCLASS_DELIMITER(Code)(Java Doc)
final protected static byte CHARCLASS_DIGIT(Code)(Java Doc)
final protected static byte CHARCLASS_NUMBERSPECIAL(Code)(Java Doc)
final protected static byte CHARCLASS_TOKEN(Code)(Java Doc)
final protected static byte CHARCLASS_WHITESPACE(Code)(Java Doc)
public static char CHAR_BS(Code)(Java Doc)
public static char CHAR_CR(Code)(Java Doc)
public static char CHAR_FF(Code)(Java Doc)
public static char CHAR_HT(Code)(Java Doc)
public static char CHAR_LF(Code)(Java Doc)
final protected static String C_TOKEN_ADDWSA(Code)(Java Doc)
final protected static String C_TOKEN_ADDWSB(Code)(Java Doc)
final protected static String C_TOKEN_COMMENT(Code)(Java Doc)
final protected static String C_TOKEN_NOWSA(Code)(Java Doc)
final public static String C_WARN_ARRAYSIZE(Code)(Java Doc)
final public static String C_WARN_ENDOBJ_MISSING(Code)(Java Doc)
final public static String C_WARN_ENDSTREAMCORRUPT(Code)(Java Doc)
final public static String C_WARN_ENDSTREAMEOL(Code)(Java Doc)
final public static String C_WARN_ILLEGALHEX(Code)(Java Doc)
final public static String C_WARN_NAMETOLONG(Code)(Java Doc)
final public static String C_WARN_SINGLEEOL(Code)(Java Doc)
final public static String C_WARN_SINGLEEOL_OBJ(Code)(Java Doc)
final public static String C_WARN_SINGLESPACE(Code)(Java Doc)
final public static String C_WARN_SINGLESPACE_OBJ(Code)(Java Doc)
final public static String C_WARN_STREAMEOL(Code)(Java Doc)
final public static String C_WARN_STREAMEXTERNAL(Code)(Java Doc)
final public static String C_WARN_STREAMLENGTH(Code)(Java Doc)
final public static String C_WARN_STRINGTOLONG(Code)(Java Doc)
final public static String C_WARN_UNEVENHEX(Code)(Java Doc)
final public static byte[] TOKEN_EOF(Code)(Java Doc)
final public static byte[] TOKEN_FDFHEADER(Code)(Java Doc)
final public static byte[] TOKEN_PDFHEADER(Code)(Java Doc)
final public static byte[] TOKEN_R(Code)(Java Doc)
final public static byte[] TOKEN_endobj(Code)(Java Doc)
final public static byte[] TOKEN_endstream(Code)(Java Doc)
final public static byte[] TOKEN_false(Code)(Java Doc)
final public static byte[] TOKEN_ndstream(Code)(Java Doc)
final public static byte[] TOKEN_null(Code)(Java Doc)
final public static byte[] TOKEN_obj(Code)(Java Doc)
final public static byte[] TOKEN_s_tream(Code)(Java Doc)
final public static byte[] TOKEN_startxref(Code)(Java Doc)
final public static byte[] TOKEN_stream(Code)(Java Doc)
final public static byte[] TOKEN_trailer(Code)(Java Doc)
final public static byte[] TOKEN_true(Code)(Java Doc)
final public static byte[] TOKEN_xref(Code)(Java Doc)
final protected static byte[] characterClass(Code)(Java Doc)
protected boolean check(Code)(Java Doc)

Methods inherited from de.intarsys.pdf.parser.PDFParser
abstract protected COSIndirectObject createObjectReference() throws IOException, COSLoadException(Code)(Java Doc)
public IPDFParserExceptionHandler getExceptionHandler()(Code)(Java Doc)
protected COSObjectKey getObjectKey()(Code)(Java Doc)
protected ISystemSecurityHandler getSecurityHandler()(Code)(Java Doc)
public void handleError(COSLoadError error) throws COSLoadException(Code)(Java Doc)
public void handleWarning(COSLoadWarning warning) throws COSLoadException(Code)(Java Doc)
final public static boolean isDelimiter(int i)(Code)(Java Doc)
final public static boolean isDigit(int i)(Code)(Java Doc)
final public static boolean isEOL(int i)(Code)(Java Doc)
final public static boolean isNumberStart(int i)(Code)(Java Doc)
final public static boolean isOctalDigit(int i)(Code)(Java Doc)
final public static boolean isTokenStart(int i)(Code)(Java Doc)
final public static boolean isWhitespace(int i)(Code)(Java Doc)
protected COSObject lookaheadPop()(Code)(Java Doc)
protected void lookaheadPush(COSObject obj)(Code)(Java Doc)
protected void parseComment(IRandomAccess input) throws IOException(Code)(Java Doc)
public Object parseElement(IRandomAccess input) throws IOException, COSLoadException(Code)(Java Doc)
public STDocType parseHeader(IRandomAccess input) throws IOException, COSLoadException(Code)(Java Doc)
protected COSDocumentElement parseObject(IRandomAccess input) throws IOException, COSLoadException(Code)(Java Doc)
protected COSObject parseObjectDictionary(IRandomAccess input) throws IOException, COSLoadException(Code)(Java Doc)
protected COSObject parseOnObjectArray(IRandomAccess input) throws COSLoadException, IOException(Code)(Java Doc)
protected COSObject parseOnObjectDictionary(IRandomAccess input) throws IOException, COSLoadException(Code)(Java Doc)
protected COSObject parseOnObjectHexString(IRandomAccess input, int next) throws IOException, COSLoadException(Code)(Java Doc)
protected COSObject parseOnObjectName(IRandomAccess input) throws IOException, COSLoadException(Code)(Java Doc)
protected COSObject parseOnObjectNumber(IRandomAccess input, int next) throws IOException, COSLoadException(Code)(Java Doc)
protected COSObject parseOnObjectStream(IRandomAccess input, COSDictionary dict) throws IOException, COSLoadException(Code)(Java Doc)
protected COSObject parseOnObjectStreamOrDictionary(IRandomAccess input) throws IOException, COSLoadException(Code)(Java Doc)
protected COSObject parseOnObjectStreamOrDictionaryOrHexString(IRandomAccess input) throws IOException, COSLoadException(Code)(Java Doc)
protected COSObject parseOnObjectString(IRandomAccess input) throws IOException, COSLoadException(Code)(Java Doc)
protected boolean readEOL(IRandomAccess input) throws IOException(Code)(Java Doc)
protected int readEscape(IRandomAccess input) throws IOException(Code)(Java Doc)
public int readInteger(IRandomAccess input, boolean consumeSpaceAfter) throws IOException(Code)(Java Doc)
protected int readOctalChar(IRandomAccess input) throws IOException(Code)(Java Doc)
public void readSpaces(IRandomAccess input) throws IOException(Code)(Java Doc)
protected byte[] readStream(IRandomAccess input) throws IOException(Code)(Java Doc)
public byte[] readToken(IRandomAccess input) throws IOException(Code)(Java Doc)
public byte[] readToken(IRandomAccess input, List messages) throws IOException(Code)(Java Doc)
protected byte[] readTokenElement(IRandomAccess input, int next) throws IOException(Code)(Java Doc)
protected byte[] readTokenElement(IRandomAccess input, int next, List messages) throws IOException(Code)(Java Doc)
public void setExceptionHandler(IPDFParserExceptionHandler exceptionHandler)(Code)(Java Doc)
protected void setObjectKey(COSObjectKey objectKey)(Code)(Java Doc)
protected void setSecurityHandler(ISystemSecurityHandler securityHandler)(Code)(Java Doc)
public static COSObject toCOSObject(byte[] data) throws IOException, COSLoadException(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.