public class GsonMessageIOFactory extends java.lang.Object implements MessageIOFactory
Constructor and Description |
---|
GsonMessageIOFactory() |
Modifier and Type | Method and Description |
---|---|
MessageReader |
createReader(java.io.InputStream inputStream)
Create a MessageReader from the given InputStream.
|
MessageWriter |
createWriter(java.io.OutputStream outputStream)
Create a MessageWriter from the given OutputStream.
|
public MessageReader createReader(java.io.InputStream inputStream)
MessageReaderFactory
createReader
in interface MessageReaderFactory
inputStream
- The stream from which raw data will be read.public MessageWriter createWriter(java.io.OutputStream outputStream)
MessageWriterFactory
createWriter
in interface MessageWriterFactory
outputStream
- The stream to which raw data will be written.