org.xml.sax.ErrorHandlerpublic class PEFFileSplitter
extends java.lang.Object
implements org.xml.sax.ErrorHandler
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
POSTFIX |
Defines the default postfix for generated file names.
|
static java.lang.String |
PREFIX |
Defines the default prefix for generated file names.
|
| Constructor | Description |
|---|---|
PEFFileSplitter() |
Creates a new PEFFileSplitter object.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
error(org.xml.sax.SAXParseException exception) |
|
void |
fatalError(org.xml.sax.SAXParseException exception) |
|
boolean |
split(java.io.File input,
java.io.File directory) |
Splits a PEF-file into several single volume PEF-files.
|
boolean |
split(java.io.InputStream is,
java.io.File directory) |
Splits the PEF-document provided as an input stream into several single volume PEF-files using
the default file name pre- and postfix.
|
boolean |
split(java.io.InputStream is,
java.io.File directory,
java.lang.String prefix,
java.lang.String postfix) |
Splits the PEF-document provided as an input stream into several single volume PEF-files using
the supplied file name pre- and postfix.
|
void |
warning(org.xml.sax.SAXParseException exception) |
public static final java.lang.String PREFIX
public static final java.lang.String POSTFIX
public boolean split(java.io.File input,
java.io.File directory)
input - input PEF-filedirectory - output directoryjava.lang.IllegalArgumentException - if input is not a filepublic boolean split(java.io.InputStream is,
java.io.File directory)
is - the input stream to the PEF-documentdirectory - the output directorypublic boolean split(java.io.InputStream is,
java.io.File directory,
java.lang.String prefix,
java.lang.String postfix)
is - the input stream to the PEF-documentdirectory - the output directoryprefix - the prefix to usepostfix - the postfix to usepublic void error(org.xml.sax.SAXParseException exception)
throws org.xml.sax.SAXException
error in interface org.xml.sax.ErrorHandlerorg.xml.sax.SAXExceptionpublic void fatalError(org.xml.sax.SAXParseException exception)
throws org.xml.sax.SAXException
fatalError in interface org.xml.sax.ErrorHandlerorg.xml.sax.SAXExceptionpublic void warning(org.xml.sax.SAXParseException exception)
throws org.xml.sax.SAXException
warning in interface org.xml.sax.ErrorHandlerorg.xml.sax.SAXException