Top Description Methods
org.snakeyaml.engine.v2.api

public Interface StreamDataWriter

Known Direct Implementers
org.snakeyaml.engine.v2.api.YamlOutputStreamWriter, org.snakeyaml.engine.v2.api.lowlevel.StreamToStringWriter, org.snakeyaml.engine.v2.api.StreamToStringWriter

Writer with the same methods as in java.io.Writer but without throwing IOExceptions The purpose of this class is to avoid checked exceptions in every method signature. Implementations must define their own way to react on IOExceptions YamlOutputStreamWriter

Method Summary

Modifier and TypeMethod and Description
public default void
flush()

Flushes this stream by writing any buffered output to the underlying stream.

public void
write(String
- data to write
str
)

write the whole data

public void
write(String
- the data to write (the source)
str
,
int
- offset to start from
off
,
int
- number of chars to write
len
)

Write part of the data

Method Detail

flushback to summary
public default void flush()

Flushes this stream by writing any buffered output to the underlying stream.

writeback to summary
public void write(String str)

write the whole data

Parameters
str:String

- data to write

writeback to summary
public void write(String str, int off, int len)

Write part of the data

Parameters
str:String

- the data to write (the source)

off:int

- offset to start from

len:int

- number of chars to write