|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.ipc.json.JsonFactory
public class JsonFactory
Factory for stream readers/writers using JSON.
| Constructor Summary | |
|---|---|
JsonFactory()
create instance with pretty-printing enabled. |
|
JsonFactory(boolean printPretty)
create instance with specified pretty-printing option. |
|
| Method Summary | |
|---|---|
JsonStreamReader |
newStreamReader(java.io.InputStream stream)
Create a new JSON stream reader. |
JsonStreamWriter |
newStreamWriter(java.io.OutputStream stream)
Create a new JSON stream writer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JsonFactory()
public JsonFactory(boolean printPretty)
| Method Detail |
|---|
public JsonStreamReader newStreamReader(java.io.InputStream stream)
throws java.io.IOException
newStreamReader in interface IpcFactorystream - stream to write
java.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 read
java.io.IOException - error creating or initializing the writer.
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||