StreamFilter
and subclass FilterInputStream
instead, to perform on-the-fly filtering.@Deprecated public interface PreFilter
ImportHandler
calls the import
method of each pre-filter in the filter chain, passing
the return value of one filter as the input to the next. The first filter in the
chain will receive the content of the original input file. The return value of the
last pre-filter must be well-formed XML. If not the last pre-filter in the chain,
the filter can return any text, as long as it is understood by the next pre-filer in
the chain.StreamFilter
Modifier and Type | Method and Description |
---|---|
byte[] |
filter(InputStream input,
long length)
Deprecated.
Process the text provided in
input and return the filtered or
transformed text in a byte array. |
byte[] filter(InputStream input, long length) throws IOException
input
and return the filtered or
transformed text in a byte array.input
- the input file or output from previous pre-filterlength
- the nuber of bytes in the input or -1
if length is not known.IOException
- this exception can be thrown if an error
is encounterd in the input. Throwing this exception will cause
the processing of the current file to be interrupted. The file
will be copied to the error directory.© 1998- 2021 Escenic AS