public class PNGFilter extends java.lang.Object implements ContentDataFilter
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] arg) |
void |
readFilter(java.io.InputStream input,
java.io.OutputStream output,
java.lang.String charset,
java.util.Map<java.lang.String,java.lang.String> otherParams,
FilterCallback cb,
boolean deleteText,
boolean deleteTimestamp,
boolean checkCRCs) |
void |
readFilter(java.io.InputStream input,
java.io.OutputStream output,
java.lang.String charset,
java.util.Map<java.lang.String,java.lang.String> otherParams,
java.lang.String schemeHostAndPort,
FilterCallback cb)
Filter data for reading.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadFilterpublic void readFilter(java.io.InputStream input,
java.io.OutputStream output,
java.lang.String charset,
java.util.Map<java.lang.String,java.lang.String> otherParams,
java.lang.String schemeHostAndPort,
FilterCallback cb)
throws DataFilterException,
java.io.IOException
ContentDataFilterreadFilter in interface ContentDataFilterinput - Stream to read potentially unsafe data from.output - Stream to write safe (but possibly incomplete) data to.charset - Character set of the data if appropriate for this MIME type.otherParams - Other type parameters if appropriate.schemeHostAndPort - Scheme, host and port of the node as seen in the request.cb - Filter callback for modifying HTML tags. Irrelevant for most MIME types. In future we
might need this for other types.DataFilterException - If the data cannot be filtered. Any data
written so far should be discarded if possible.java.io.IOException - If there was a failure to read from the input data
or write to the output data. Implementations should not throw this
if data is merely badly formatted - any such exceptions should be
caught and converted to a DataFilterException.public void readFilter(java.io.InputStream input,
java.io.OutputStream output,
java.lang.String charset,
java.util.Map<java.lang.String,java.lang.String> otherParams,
FilterCallback cb,
boolean deleteText,
boolean deleteTimestamp,
boolean checkCRCs)
throws DataFilterException,
java.io.IOException
DataFilterExceptionjava.io.IOExceptionpublic static void main(java.lang.String[] arg)
throws java.lang.Throwable
java.lang.Throwable