|
xmlgraphics-commons 1.5 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xmlgraphics.ps.dsc.tools.DSCTools
public final class DSCTools
Helper methods commonly used when dealing with DSC-compliant PostScript files.
| Field Summary |
|---|
| Fields inherited from interface org.apache.xmlgraphics.ps.dsc.DSCParserConstants |
|---|
COMMENT, DSC_COMMENT, EOF, HEADER_COMMENT, LINE |
| Method Summary | |
|---|---|
static DSCHeaderComment |
checkAndSkipDSC30Header(DSCParser parser)
Verifies that the file being parsed is a DSC 3.0 file. |
static boolean |
headerCommentsEndHere(DSCEvent event)
Indicates whether the given event ends a header comment section according to the rules in DSC 3.0, chapter 4.4. |
static DSCComment |
nextPageOrTrailer(DSCParser parser,
PSGenerator gen)
Advances the parser to the next page or to the trailer or the end of file comment. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean headerCommentsEndHere(DSCEvent event)
event - the event to check
public static DSCHeaderComment checkAndSkipDSC30Header(DSCParser parser)
throws DSCException,
IOException
parser - the DSC parser
DSCException - In case of a violation of the DSC spec
IOException - In case of an I/O problem
public static DSCComment nextPageOrTrailer(DSCParser parser,
PSGenerator gen)
throws IOException,
DSCException
parser - the DSC parsergen - the PSGenerator instance to pass the skipped events through to
IOException - In case of an I/O error
DSCException - In case of a violation of the DSC spec
|
xmlgraphics-commons 1.5 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||