T - The type of Objects to write.public interface PayloadWriter<T>
extends java.io.Closeable, java.io.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 java.io.IOException
T.t - the object to write.java.io.IOException - if an I/O error occurs. In particular, an IOException may be thrown if this has been
closed.