| java.lang.Object com.sun.pdfview.BaseWatchable com.sun.pdfview.PDFParser
PDFParser | public class PDFParser extends BaseWatchable (Code) | | PDFParser is the class that parses a PDF content stream and
produces PDFCmds for a PDFPage. You should never ever see it run:
it gets created by a PDFPage only if needed, and may even run in
its own thread.
author: Mike Wessler |
Inner Class :class ParserState implements Cloneable | |
Constructor Summary | |
public | PDFParser(PDFPage cmds, byte[] stream, HashMap resources) Don't call this constructor directly. |
debuglevel | public static int debuglevel(Code) | | |
errorwritten | boolean errorwritten(Code) | | |
PDFParser | public PDFParser(PDFPage cmds, byte[] stream, HashMap resources)(Code) | | Don't call this constructor directly. Instead, use
PDFFile.getPage(int pagenum) to get a PDFPage. There should
never be any reason for a user to create, access, or hold
on to a PDFParser.
|
cleanup | public void cleanup()(Code) | | Cleanup when iteration is done
|
dumpStreamToError | public void dumpStreamToError()(Code) | | |
iterate | public int iterate() throws Exception(Code) | | parse the stream. commands are added to the PDFPage initialized
in the constructor as they are encountered.
Page numbers in comments refer to the Adobe PDF specification.
- Watchable.RUNNING when there are commands to be processed
- Watchable.COMPLETED when the page is done and allthe commands have been processed
- Watchable.STOPPED if the page we are rendering into isno longer available
|
setDebugLevel | public static void setDebugLevel(int level)(Code) | | |
setup | public void setup()(Code) | | Called to prepare for some iterations
|
|
|