JsonProvider Interface
public interface JsonProvider
An interface to be implemented by any azure-json plugin that wishes to provide an alternate JsonReader or JsonWriter implementation.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract
Json |
createReader(byte[] json, JsonOptions options)
Creates an instance of JsonReader that reads a |
abstract
Json |
createReader(InputStream json, JsonOptions options)
Creates an instance of JsonReader that reads a InputStream. |
abstract
Json |
createReader(Reader json, JsonOptions options)
Creates an instance of JsonReader that reads a Reader. |
abstract
Json |
createReader(String json, JsonOptions options)
Creates an instance of JsonReader that reads a String. |
abstract
Json |
createWriter(OutputStream json, JsonOptions options)
Creates an instance of JsonWriter that writes to an OutputStream. |
abstract
Json |
createWriter(Writer json, JsonOptions options)
Creates an instance of JsonWriter that writes to an Writer. |
Method Details
createReader
public abstract JsonReader createReader(byte[] json, JsonOptions options)
Creates an instance of JsonReader that reads a byte[]
.
Parameters:
byte[]
.
Returns:
Throws:
createReader
public abstract JsonReader createReader(InputStream json, JsonOptions options)
Creates an instance of JsonReader that reads a InputStream.
Parameters:
Returns:
Throws:
createReader
public abstract JsonReader createReader(Reader json, JsonOptions options)
Creates an instance of JsonReader that reads a Reader.
Parameters:
Returns:
Throws:
createReader
public abstract JsonReader createReader(String json, JsonOptions options)
Creates an instance of JsonReader that reads a String.
Parameters:
Returns:
Throws:
createWriter
public abstract JsonWriter createWriter(OutputStream json, JsonOptions options)
Creates an instance of JsonWriter that writes to an OutputStream.
Parameters:
Returns:
Throws:
createWriter
public abstract JsonWriter createWriter(Writer json, JsonOptions options)
Creates an instance of JsonWriter that writes to an Writer.
Parameters:
Returns:
Throws:
Applies to
Azure SDK for Java