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:
java.io.Closeable
,java.io.Flushable
,java.lang.Appendable
,java.lang.AutoCloseable
,StreamDataWriter
public abstract class YamlOutputStreamWriter extends java.io.OutputStreamWriter implements StreamDataWriter
Provide an example of implementation of StreamDataWriter interface which does not throwIOException
-
-
Constructor Summary
Constructors Constructor Description YamlOutputStreamWriter(java.io.OutputStream out, java.nio.charset.Charset cs)
Create
-
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(java.io.IOException e)
to be implementedvoid
write(java.lang.String str)
write the whole datavoid
write(java.lang.String str, int off, int len)
Write part of the data
-
-
-
Method Detail
-
processIOException
public abstract void processIOException(java.io.IOException e)
to be implemented- Parameters:
e
- - the reason
-
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 interfacejava.io.Flushable
- Specified by:
flush
in interfaceStreamDataWriter
- Overrides:
flush
in classjava.io.OutputStreamWriter
-
write
public void write(java.lang.String str, int off, int len)
Description copied from interface:StreamDataWriter
Write part of the data- Specified by:
write
in interfaceStreamDataWriter
- Overrides:
write
in classjava.io.OutputStreamWriter
- Parameters:
str
- - the data to write (the source)off
- - offset to start fromlen
- - number of chars to write
-
write
public void write(java.lang.String str)
Description copied from interface:StreamDataWriter
write the whole data- Specified by:
write
in interfaceStreamDataWriter
- Overrides:
write
in classjava.io.Writer
- Parameters:
str
- - data to write
-
-