public abstract class AbstractFilter extends Object implements Filter
| Modifier and Type | Method and Description |
|---|---|
void |
filter(byte[] buf,
int off,
int len)
Filter a couple of bytes.
|
boolean |
isValid()
Return a flag indicating whether the contents processed by this filter
represents a valid entity.
|
void |
reset()
Reset the filter.
|
void |
setAutoReset(boolean autoReset)
Set the flag indicating whether the filter automatically resets its
internal state when the end marker has been read.
|
void |
setFilterStateListener(FilterStateListener listener)
Set a filter state listener.
|
public void setFilterStateListener(FilterStateListener listener)
listener - listenerpublic final void filter(byte[] buf,
int off,
int len)
throws IOException
filter in interface Filterbuf - bufferoff - offset inside bufferlen - number of bytesIOExceptionpublic void setAutoReset(boolean autoReset)
setAutoReset in interface FilterautoReset - autoResetCopyright © 2010 - 2020 Adobe. All Rights Reserved