T - The type of Objects to write.public interface PayloadWriter<T>
extends Closeable, Flushable
OutputStream, but allows for writing of objects of type
T.| Modifier and Type | Method and Description |
|---|---|
void |
write(T t)
Write an object of type
T. |
void write(T t) throws IOException
T.t - the object to write.IOException - if an I/O error occurs. In particular, an IOException may be thrown if this has been
closed.