public interface Streamable
OutputStream.| Modifier and Type | Method and Description |
|---|---|
default void |
writeTo(java.io.File file)
Write this
Writable to the given File. |
default void |
writeTo(java.io.OutputStream outputStream)
Write this object to the given
OutputStream using StandardCharsets.UTF_8 by default. |
void |
writeTo(java.io.OutputStream outputStream,
java.nio.charset.Charset charset)
Write this object to the given
OutputStream using StandardCharsets.UTF_8 by default. |
void writeTo(java.io.OutputStream outputStream,
@Nullable
java.nio.charset.Charset charset)
throws java.io.IOException
OutputStream using StandardCharsets.UTF_8 by default.outputStream - The output streamcharset - The charset to use. Defaults to StandardCharsets.UTF_8java.io.IOException - if an error occurred while outputting data to the writerdefault void writeTo(java.io.File file)
throws java.io.IOException
Writable to the given File.file - The filejava.io.IOException - if an error occurred while outputting data to the writerdefault void writeTo(java.io.OutputStream outputStream)
throws java.io.IOException
OutputStream using StandardCharsets.UTF_8 by default.outputStream - The output streamjava.io.IOException - if an error occurred while outputting data to the writer