public class JSONFactory extends Object
JSONReader
or JSONWriter
.Modifier and Type | Method and Description |
---|---|
static JSONFactory |
instance()
Gets an instance of JSONFactory.
|
JSONReader |
makeReader(Reader reader)
Creates a new
JSONReader from a reader. |
JSONWriter |
makeWriter(Writer writer)
Creates a new
JSONWriter from a writer |
public static JSONFactory instance()
public JSONReader makeReader(Reader reader) throws JSONException
JSONReader
from a reader.reader
- - the reader to read fromJSONReader
JSONException
- if reader cannot be readpublic JSONWriter makeWriter(Writer writer)
JSONWriter
from a writerwriter
- - the writer to write toJSONWriter
Copyright © 2020. All rights reserved.