|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.odysseus.staxon.json.stream.JsonStreamFactory
public abstract class JsonStreamFactory
Abstract JSON stream (JsonStreamSource and JsonStreamTarget) factory.
This class provides the static newFactory() method to lookup and instantiate a default
implementation using the Services API (as detailed in the JAR specification).
| Constructor Summary | |
|---|---|
JsonStreamFactory()
|
|
| Method Summary | |
|---|---|
abstract JsonStreamSource |
createJsonStreamSource(InputStream input)
Create stream source. |
abstract JsonStreamSource |
createJsonStreamSource(Reader reader)
Create stream source. |
abstract JsonStreamTarget |
createJsonStreamTarget(OutputStream output,
boolean pretty)
Create stream target. |
abstract JsonStreamTarget |
createJsonStreamTarget(Writer writer,
boolean pretty)
Create stream target. |
static JsonStreamFactory |
newFactory()
Create a new instance of a JsonStreamFactory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JsonStreamFactory()
| Method Detail |
|---|
public static JsonStreamFactory newFactory()
throws FactoryConfigurationError
Create a new instance of a JsonStreamFactory.
Determines the class to instantiate as follows:
FactoryConfigurationError - if a factory class cannot be found or instantiation fails.
public abstract JsonStreamSource createJsonStreamSource(InputStream input)
throws IOException
input -
IOException
public abstract JsonStreamSource createJsonStreamSource(Reader reader)
throws IOException
reader -
IOException
public abstract JsonStreamTarget createJsonStreamTarget(OutputStream output,
boolean pretty)
throws IOException
output - pretty -
IOException
public abstract JsonStreamTarget createJsonStreamTarget(Writer writer,
boolean pretty)
throws IOException
writer - pretty -
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||