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
Provide an example of implementation of StreamDataWriter interface which does not throw
IOException-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidflush()Flushes this stream by writing any buffered output to the underlying stream.abstract voidto be implementedvoidwrite the whole datavoidWrite part of the dataMethods inherited from class OutputStreamWriter
append, append, close, getEncoding, write, writeMethods inherited from class Writer
append, nullWriter, write
-
Constructor Details
-
YamlOutputStreamWriter
Create- Parameters:
out- - the outputcs- - encoding to use to translate String to bytes
-
-
Method Details
-
processIOException
to be implemented- Parameters:
e- - the reason
-
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
Description copied from interface:StreamDataWriterWrite part of the data- Specified by:
writein interfaceStreamDataWriter- Overrides:
writein classOutputStreamWriter- Parameters:
str- - the data to write (the source)off- - offset to start fromlen- - number of chars to write
-
write
Description copied from interface:StreamDataWriterwrite the whole data- Specified by:
writein interfaceStreamDataWriter- Overrides:
writein classWriter- Parameters:
str- - data to write
-