|
xmlgraphics-commons 1.4 | ||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use DSCException | |
org.apache.xmlgraphics.ps.dsc | Tools for DSC-compliant PostScript files (DSC = Document Structuring Conventions). |
org.apache.xmlgraphics.ps.dsc.tools | Tools for working with DSC-compliant PostScript files. |
Uses of DSCException in org.apache.xmlgraphics.ps.dsc |
Methods in org.apache.xmlgraphics.ps.dsc that throw DSCException | |
void |
NestedDocumentHandler.handle(DSCEvent event,
DSCParser parser)
Handle a DSC event. |
void |
DSCListener.processEvent(DSCEvent event,
DSCParser parser)
Called for each DSC event. |
void |
DefaultNestedDocumentHandler.handle(DSCEvent event,
DSCParser parser)
Handle a DSC event. Implementations may issue additional calls to the DSC parser and may modify its state. When returning from the call, state information such as filters should be restored. |
void |
DefaultNestedDocumentHandler.processEvent(DSCEvent event,
DSCParser parser)
Called for each DSC event. You can call methods on the DSC parser to skip comments, for example. But implementations need to be good citizens and take into account that multiple listeners can be active at the same time and that they might interfere with other listeners. When returning from the call, state information such as filters should be restored. |
protected java.lang.String |
DSCParser.readLine()
Reads one line from the input file |
void |
DSCParser.parse(DSCHandler handler)
Starts the parser in push parsing mode sending events to the DSCHandler instance. |
int |
DSCParser.next()
Steps to the next item indicating the type of event. |
DSCEvent |
DSCParser.nextEvent()
Steps to the next item returning the new event. |
protected void |
DSCParser.parseNext()
Parses the next event. |
DSCComment |
DSCParser.nextDSCComment(java.lang.String name)
Advances to the next DSC comment with the given name. |
DSCComment |
DSCParser.nextDSCComment(java.lang.String name,
PSGenerator gen)
Advances to the next DSC comment with the given name. |
PostScriptComment |
DSCParser.nextPSComment(java.lang.String prefix,
PSGenerator gen)
Advances to the next PostScript comment with the given prefix. |
void |
FilteringEventListener.processEvent(DSCEvent event,
DSCParser parser)
Called for each DSC event. You can call methods on the DSC parser to skip comments, for example. But implementations need to be good citizens and take into account that multiple listeners can be active at the same time and that they might interfere with other listeners. When returning from the call, state information such as filters should be restored. |
Constructors in org.apache.xmlgraphics.ps.dsc that throw DSCException | |
DSCParser(java.io.InputStream in)
Creates a new DSC parser. |
Uses of DSCException in org.apache.xmlgraphics.ps.dsc.tools |
Methods in org.apache.xmlgraphics.ps.dsc.tools that throw DSCException | |
static void |
PageExtractor.extractPages(java.io.InputStream in,
java.io.OutputStream out,
int from,
int to)
Parses a DSC-compliant file and pipes the content through to the OutputStream omitting all pages not within the range. |
static DSCHeaderComment |
DSCTools.checkAndSkipDSC30Header(DSCParser parser)
Verifies that the file being parsed is a DSC 3.0 file. |
static DSCComment |
DSCTools.nextPageOrTrailer(DSCParser parser,
PSGenerator gen)
Advances the parser to the next page or to the trailer or the end of file comment. |
|
xmlgraphics-commons 1.4 | ||||||||||
PREV NEXT | FRAMES NO FRAMES |