|
xmlgraphics-commons 1.4 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.xmlgraphics.ps.dsc.tools.PageExtractor
This class can extract a certain range of pages from a DSC-compliant PostScript file.
| Field Summary |
| Fields inherited from interface org.apache.xmlgraphics.ps.dsc.DSCParserConstants |
COMMENT, DSC_COMMENT, EOF, HEADER_COMMENT, LINE |
| Constructor Summary | |
PageExtractor()
|
|
| Method Summary | |
static void |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PageExtractor()
| Method Detail |
public static void extractPages(java.io.InputStream in,
java.io.OutputStream out,
int from,
int to)
throws java.io.IOException,
DSCException
in - the InputStream to parse fromout - the OutputStream to write the modified file tofrom - the starting page (1-based)to - the last page (inclusive, 1-based)
java.io.IOException - In case of an I/O error
DSCException - In case of a violation of the DSC spec
|
xmlgraphics-commons 1.4 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||