public class JsonFactory extends java.lang.Object implements IpcFactory
| Constructor and Description |
|---|
JsonFactory()
create instance with pretty-printing enabled.
|
JsonFactory(boolean printPretty)
create instance with specified pretty-printing option.
|
| Modifier and Type | Method and Description |
|---|---|
JsonStreamReader |
newStreamReader(java.io.InputStream stream)
Create a new JSON stream reader.
|
JsonStreamWriter |
newStreamWriter(java.io.OutputStream stream)
Create a new JSON stream writer.
|
public JsonFactory()
public JsonFactory(boolean printPretty)
public JsonStreamReader newStreamReader(java.io.InputStream stream) throws java.io.IOException
newStreamReader in interface IpcFactorystream - stream to writejava.io.IOException - error creating or initializing the reader.public JsonStreamWriter newStreamWriter(java.io.OutputStream stream) throws java.io.IOException
newStreamWriter in interface IpcFactorystream - stream to readjava.io.IOException - error creating or initializing the writer.