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 voidflush()Flushes this stream by writing any buffered output to the underlying stream.abstract voidprocessIOException(IOException e)voidwrite(String str)voidwrite(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:StreamDataWriterFlushes this stream by writing any buffered output to the underlying stream.- Specified by:
flushin interfaceFlushable- Specified by:
flushin interfaceStreamDataWriter- Overrides:
flushin classOutputStreamWriter
-
write
public void write(String str, int off, int len)
- Specified by:
writein interfaceStreamDataWriter- Overrides:
writein classOutputStreamWriter
-
write
public void write(String str)
- Specified by:
writein interfaceStreamDataWriter- Overrides:
writein classWriter
-
-