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 fromJSONReaderJSONException - if reader cannot be readpublic JSONWriter makeWriter(Writer writer)
JSONWriter from a writerwriter - - the writer to write toJSONWriterCopyright © 2025. All rights reserved.