Package org.snakeyaml.engine.v2.api
Class YamlOutputStreamWriter
- java.lang.Object
-
- java.io.Writer
-
- java.io.OutputStreamWriter
-
- org.snakeyaml.engine.v2.api.YamlOutputStreamWriter
-
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
,StreamDataWriter
public abstract class YamlOutputStreamWriter extends OutputStreamWriter implements StreamDataWriter
Provide an example of implementation of StreamDataWriter interface
-
-
Constructor Summary
Constructors Constructor Description YamlOutputStreamWriter(OutputStream out, Charset cs)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
flush()
Flushes this stream by writing any buffered output to the underlying stream.abstract void
processIOException(IOException e)
void
write(String str)
void
write(String str, int off, int len)
-
Methods inherited from class java.io.OutputStreamWriter
append, append, close, getEncoding, write, write
-
Methods inherited from class java.io.Writer
append, nullWriter, write
-
-
-
-
Constructor Detail
-
YamlOutputStreamWriter
public YamlOutputStreamWriter(OutputStream out, Charset cs)
-
-
Method Detail
-
processIOException
public abstract void processIOException(IOException e)
-
flush
public void flush()
Description copied from interface:StreamDataWriter
Flushes this stream by writing any buffered output to the underlying stream.- Specified by:
flush
in interfaceFlushable
- Specified by:
flush
in interfaceStreamDataWriter
- Overrides:
flush
in classOutputStreamWriter
-
write
public void write(String str, int off, int len)
- Specified by:
write
in interfaceStreamDataWriter
- Overrides:
write
in classOutputStreamWriter
-
write
public void write(String str)
- Specified by:
write
in interfaceStreamDataWriter
- Overrides:
write
in classWriter
-
-