Uses of Class
org.apache.xmlgraphics.ps.dsc.DSCException
-
Packages that use DSCException Package Description 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 Modifier and Type Method Description void
DefaultNestedDocumentHandler. handle(DSCEvent event, DSCParser parser)
Handle a DSC event.void
NestedDocumentHandler. handle(DSCEvent event, DSCParser parser)
Handle a DSC event.int
DSCParser. next()
Steps to the next item indicating the type of 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.DSCEvent
DSCParser. nextEvent()
Steps to the next item returning the new event.PostScriptComment
DSCParser. nextPSComment(java.lang.String prefix, PSGenerator gen)
Advances to the next PostScript comment with the given prefix.void
DSCParser. parse(DSCHandler handler)
Starts the parser in push parsing mode sending events to the DSCHandler instance.protected void
DSCParser. parseNext()
Parses the next event.void
DefaultNestedDocumentHandler. processEvent(DSCEvent event, DSCParser parser)
Called for each DSC event.void
DSCListener. processEvent(DSCEvent event, DSCParser parser)
Called for each DSC event.void
FilteringEventListener. processEvent(DSCEvent event, DSCParser parser)
Called for each DSC event.protected java.lang.String
DSCParser. readLine()
Reads one line from the input fileConstructors in org.apache.xmlgraphics.ps.dsc that throw DSCException Constructor Description 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 Modifier and Type Method Description static DSCHeaderComment
DSCTools. checkAndSkipDSC30Header(DSCParser parser)
Verifies that the file being parsed is a DSC 3.0 file.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 DSCComment
DSCTools. nextPageOrTrailer(DSCParser parser, PSGenerator gen)
Advances the parser to the next page or to the trailer or the end of file comment.
-