Package org.snakeyaml.engine.v2.api
Interface StreamDataWriter
-
- All Known Implementing Classes:
YamlOutputStreamWriter
public interface StreamDataWriterWriter with the same methods as inWriterbut 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 IOExceptionsYamlOutputStreamWriter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidflush()Flushes this stream by writing any buffered output to the underlying stream.voidwrite(String str)write the whole datavoidwrite(String str, int off, int len)Write part of the data
-
-
-
Method Detail
-
flush
default void flush()
Flushes this stream by writing any buffered output to the underlying stream.
-
write
void write(String str)
write the whole data- Parameters:
str- - data to write
-
write
void write(String str, int off, int len)
Write part of the data- Parameters:
str- - the data to write (the source)off- - offset to start fromlen- - number of chars to write
-
-