public abstract class YamlOutputStreamWriter extends OutputStreamWriter implements StreamDataWriter
IOException| Constructor and Description |
|---|
YamlOutputStreamWriter(OutputStream out,
Charset cs)
Create
|
| Modifier and Type | Method and Description |
|---|---|
void |
flush()
Flushes this stream by writing any buffered output to the underlying stream.
|
abstract void |
processIOException(IOException e)
to be implemented
|
void |
write(String str)
write the whole data
|
void |
write(String str,
int off,
int len)
Write part of the data
|
close, getEncoding, write, writepublic YamlOutputStreamWriter(OutputStream out, Charset cs)
out - - the outputcs - - encoding to use to translate String to bytespublic abstract void processIOException(IOException e)
e - - the reasonpublic void flush()
StreamDataWriterflush in interface Flushableflush in interface StreamDataWriterflush in class OutputStreamWriterpublic void write(String str, int off, int len)
StreamDataWriterwrite in interface StreamDataWriterwrite in class OutputStreamWriterstr - - the data to write (the source)off - - offset to start fromlen - - number of chars to writepublic void write(String str)
StreamDataWriterwrite in interface StreamDataWriterwrite in class Writerstr - - data to writeCopyright © 2018–2022. All rights reserved.