Package org.apache.abdera.i18n.text.io
Class FilteredCharReader
- java.lang.Object
-
- java.io.Reader
-
- java.io.FilterReader
-
- org.apache.abdera.i18n.text.io.FilteredCharReader
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Readable
- Direct Known Subclasses:
XmlRestrictedCharReader
@Deprecated(since="2021-07-29") public class FilteredCharReader extends FilterReader
Deprecated.This API is deprecated as Apache Abdera is a retired project since 2017.A reader implementation that filters out unwanted characters By default, unwanted characters are simply removed from the stream. Alternatively, a replacement character can be provided so long as it is acceptable to the specified filter
-
-
Constructor Summary
Constructors Constructor Description FilteredCharReader(InputStream in, String charset, Filter filter)
Deprecated.FilteredCharReader(InputStream in, String charset, Filter filter, char replacement)
Deprecated.FilteredCharReader(InputStream in, Filter filter)
Deprecated.FilteredCharReader(InputStream in, Filter filter, char replacement)
Deprecated.FilteredCharReader(Reader in)
Deprecated.FilteredCharReader(Reader in, char replacement)
Deprecated.FilteredCharReader(Reader in, Filter filter)
Deprecated.FilteredCharReader(Reader in, Filter filter, char replacement)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Filter
getUnacceptableFilter(int... unacceptable)
Deprecated.int
read()
Deprecated.int
read(char[] cbuf, int off, int len)
Deprecated.-
Methods inherited from class java.io.FilterReader
close, mark, markSupported, ready, reset, skip
-
Methods inherited from class java.io.Reader
nullReader, read, read, transferTo
-
-
-
-
Constructor Detail
-
FilteredCharReader
public FilteredCharReader(InputStream in, Filter filter)
Deprecated.
-
FilteredCharReader
public FilteredCharReader(InputStream in, String charset, Filter filter) throws UnsupportedEncodingException
Deprecated.- Throws:
UnsupportedEncodingException
-
FilteredCharReader
public FilteredCharReader(InputStream in, Filter filter, char replacement)
Deprecated.
-
FilteredCharReader
public FilteredCharReader(InputStream in, String charset, Filter filter, char replacement) throws UnsupportedEncodingException
Deprecated.- Throws:
UnsupportedEncodingException
-
FilteredCharReader
public FilteredCharReader(Reader in)
Deprecated.
-
FilteredCharReader
public FilteredCharReader(Reader in, char replacement)
Deprecated.
-
-
Method Detail
-
read
public int read() throws IOException
Deprecated.- Overrides:
read
in classFilterReader
- Throws:
IOException
-
read
public int read(char[] cbuf, int off, int len) throws IOException
Deprecated.- Overrides:
read
in classFilterReader
- Throws:
IOException
-
getUnacceptableFilter
public static Filter getUnacceptableFilter(int... unacceptable)
Deprecated.
-
-