public class ObjWriter extends Object
ReadableObj to a stream.| Modifier and Type | Method and Description |
|---|---|
static void |
write(ReadableObj input,
OutputStream outputStream)
Writes the given
ReadableObj to the given stream. |
static void |
write(ReadableObj input,
Writer writer)
Writes the given
ReadableObj to the given writer. |
public static void write(ReadableObj input, OutputStream outputStream) throws IOException
ReadableObj to the given stream. The caller
is responsible for closing the stream.input - The ReadableObj to write.outputStream - The stream to write to.IOException - If an IO error occurs.public static void write(ReadableObj input, Writer writer) throws IOException
ReadableObj to the given writer. The caller
is responsible for closing the writer.input - The ReadableObj to write.writer - The writer to write to.IOException - If an IO error occurs.Copyright © 2015. All rights reserved.