|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
com.jkristian.io.FilteredByteInputStream
com.jkristian.io.FilteredCharInputStream
public abstract class FilteredCharInputStream
A stream that produces input by reading from an underlying source, optionally transforming the data through a chain of FilterWriters, encoding it as bytes and optionally transforming them through a chain of FilterOutputStreams.
This class is not thread-safe.
Field Summary |
---|
Fields inherited from class com.jkristian.io.FilteredByteInputStream |
---|
CHUNK_LENGTH |
Constructor Summary | |
---|---|
FilteredCharInputStream()
Create a filter that encodes characters using the default encoding. |
|
FilteredCharInputStream(java.lang.String encoding)
Create a filter that encodes characters using the named encoding. |
Method Summary | |
---|---|
void |
close()
|
protected void |
flush()
Flush the filters into the output. |
java.io.OutputStream |
getByteFilter()
|
java.io.Writer |
getCharFilter()
|
void |
setByteFilter(java.io.OutputStream filter)
Set the tail of the chain of FilterOutputStreams. |
void |
setCharFilter(java.io.Writer filter)
Set the tail of the chain of FilterWriters. |
Methods inherited from class com.jkristian.io.FilteredByteInputStream |
---|
available, filterInput, mark, markSupported, read, read, read, ready, reset, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FilteredCharInputStream()
public FilteredCharInputStream(java.lang.String encoding) throws java.io.UnsupportedEncodingException
encoding
- the name of a supported character encoding
java.io.UnsupportedEncodingException
Method Detail |
---|
public java.io.OutputStream getByteFilter()
getByteFilter
in class FilteredByteInputStream
public void setByteFilter(java.io.OutputStream filter)
setByteFilter
in class FilteredByteInputStream
public java.io.Writer getCharFilter()
public void setCharFilter(java.io.Writer filter)
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class FilteredByteInputStream
java.io.IOException
protected void flush() throws java.io.IOException
flush
in class FilteredByteInputStream
java.io.IOException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |