| java.lang.Object org.apache.xmlgraphics.ps.dsc.tools.DSCTools
DSCTools | public class DSCTools implements DSCParserConstants(Code) | | Helper methods commonly used when dealing with DSC-compliant PostScript files.
|
headerCommentsEndHere | public static boolean headerCommentsEndHere(DSCEvent event)(Code) | | Indicates whether the given event ends a header comment section according to the rules in
DSC 3.0, chapter 4.4.
Parameters: event - the event to check true if a header comment section would be ended either explicitely or implicitelyby the given event |
nextPageOrTrailer | public static DSCComment nextPageOrTrailer(DSCParser parser, PSGenerator gen) throws IOException, DSCException(Code) | | Advances the parser to the next page or to the trailer or the end of file comment.
Parameters: parser - the DSC parser Parameters: gen - the PSGenerator instance to pass the skipped events through to the DSC comment found (Page, Trailer or EOF) throws: IOException - In case of an I/O error throws: DSCException - In case of a violation of the DSC spec |
|
|