PDF Clown
0.0.8

it.stefanochizzolini.clown.tokens
Class Reader

java.lang.Object
  extended by it.stefanochizzolini.clown.tokens.Reader
All Implemented Interfaces:
Closeable

public class Reader
extends Object
implements Closeable

PDF file reader.

Version:
0.0.7
Author:
Stefano Chizzolini (http://www.stefanochizzolini.it)

Constructor Summary
Reader(IInputStream stream, File file)
          For internal use only.
 
Method Summary
 void close()
           
protected  void finalize()
           
 Parser getParser()
           
 int hashCode()
           
 PdfDictionary readTrailer()
           
 String readVersion()
           
protected  void readXRefSection(XRefEntry[] xrefEntries)
           
 XRefEntry[] readXRefTable(PdfDictionary trailer)
          Retrieves the xref-table.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Reader

public Reader(IInputStream stream,
              File file)
For internal use only.

Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getParser

public Parser getParser()

readTrailer

public PdfDictionary readTrailer()
                          throws FileFormatException
Throws:
FileFormatException

readXRefTable

public XRefEntry[] readXRefTable(PdfDictionary trailer)
                          throws FileFormatException
Retrieves the xref-table.

Returns:
The xref-table entries array.
Throws:
FileFormatException

readVersion

public String readVersion()
                   throws FileFormatException
Throws:
FileFormatException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Throws:
IOException

finalize

protected void finalize()
                 throws Throwable
Overrides:
finalize in class Object
Throws:
Throwable

readXRefSection

protected void readXRefSection(XRefEntry[] xrefEntries)
                        throws FileFormatException
Throws:
FileFormatException

PDF Clown
0.0.8

Project home page

Copyright © 2006-2010 Stefano Chizzolini. Some Rights Reserved.
This documentation is available under the terms of the GNU Free Documentation License.