Package i2p.susi.util
Class DecodingOutputStream
java.lang.Object
java.io.OutputStream
i2p.susi.util.DecodingOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
public class DecodingOutputStream extends OutputStream
Buffering decoder, with output to a Writer.
Adapted from SAM UTF8Reader.
- Since:
- 0.9.34
-
Constructor Summary
Constructors Constructor Description DecodingOutputStream(Writer out, String charset)
-
Method Summary
-
Constructor Details
-
DecodingOutputStream
- Parameters:
out
- UTF-8- Throws:
UnsupportedEncodingException
- (an IOException) on unknown charset
-
-
Method Details
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
close
Only flushes. Does NOT close the writer- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-