azure-docs-sdk-java/docs-ref-autogen/com.azure.json.JsonProvider...

276 строки
27 KiB
YAML

### YamlMime:JavaType
uid: "com.azure.json.JsonProviders"
fullName: "com.azure.json.JsonProviders"
name: "JsonProviders"
nameWithType: "JsonProviders"
summary: "Utility class for <xref uid=\"com.azure.json.JsonProvider\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonProvider\"></xref> that will use the implementation of <xref uid=\"com.azure.json.JsonProvider\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonProvider\"></xref> found on the classpath to create instances of <xref uid=\"com.azure.json.JsonReader\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonReader\"></xref> or <xref uid=\"com.azure.json.JsonWriter\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonWriter\"></xref>."
inheritances:
- "<xref href=\"java.lang.Object?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
inheritedClassMethods:
- classRef: "java.lang.<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html\">Object</a>"
methodsRef:
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--\">clone</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-\">equals</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--\">finalize</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--\">getClass</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--\">hashCode</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--\">notify</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--\">notifyAll</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--\">toString</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-\">wait</a>"
syntax: "public final class **JsonProviders**"
methods:
- uid: "com.azure.json.JsonProviders.createReader(byte[])"
fullName: "com.azure.json.JsonProviders.createReader(byte[] json)"
name: "createReader(byte[] json)"
nameWithType: "JsonProviders.createReader(byte[] json)"
summary: "Creates an instance of <xref uid=\"com.azure.json.JsonReader\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonReader\"></xref> that reads a `byte[]`."
modifiers:
- "static"
parameters:
- description: "The JSON represented as a <code>byte[]</code>."
name: "json"
type: "<xref href=\"byte?alt=byte&text=byte\" data-throw-if-not-resolved=\"False\" />[]"
syntax: "public static JsonReader createReader(byte[] json)"
exceptions:
- description: "If <code>json</code> is null."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html\">IOException</a>"
desc: "Creates an instance of <xref uid=\"com.azure.json.JsonReader\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonReader\"></xref> that reads a `byte[]`.\n\nIf a provider could not be found on the classpath this will use the default implementation, effectively the equivalent to <xref uid=\"com.azure.json.JsonProviders.createReader(byte[],com.azure.json.JsonOptions)\" data-throw-if-not-resolved=\"false\" data-raw-source=\"createReader(json, new JsonOptions())\"></xref>."
returns:
description: "A new instance of <xref uid=\"com.azure.json.JsonReader\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonReader\"></xref>."
type: "<xref href=\"com.azure.json.JsonReader?alt=com.azure.json.JsonReader&text=JsonReader\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.json.JsonProviders.createReader(byte[],com.azure.json.JsonOptions)"
fullName: "com.azure.json.JsonProviders.createReader(byte[] json, JsonOptions options)"
name: "createReader(byte[] json, JsonOptions options)"
nameWithType: "JsonProviders.createReader(byte[] json, JsonOptions options)"
summary: "Creates an instance of <xref uid=\"com.azure.json.JsonReader\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonReader\"></xref> that reads a `byte[]`."
modifiers:
- "static"
parameters:
- description: "The JSON represented as a <code>byte[]</code>."
name: "json"
type: "<xref href=\"byte?alt=byte&text=byte\" data-throw-if-not-resolved=\"False\" />[]"
- description: "<xref uid=\"com.azure.json.JsonOptions\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonOptions\"></xref> to configure the creation of the <xref uid=\"com.azure.json.JsonReader\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonReader\"></xref>."
name: "options"
type: "<xref href=\"com.azure.json.JsonOptions?alt=com.azure.json.JsonOptions&text=JsonOptions\" data-throw-if-not-resolved=\"False\" />"
syntax: "public static JsonReader createReader(byte[] json, JsonOptions options)"
exceptions:
- description: "If <code>json</code> or <code>options</code> is null."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html\">IOException</a>"
desc: "Creates an instance of <xref uid=\"com.azure.json.JsonReader\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonReader\"></xref> that reads a `byte[]`."
returns:
description: "A new instance of <xref uid=\"com.azure.json.JsonReader\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonReader\"></xref>."
type: "<xref href=\"com.azure.json.JsonReader?alt=com.azure.json.JsonReader&text=JsonReader\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.json.JsonProviders.createReader(java.io.InputStream)"
fullName: "com.azure.json.JsonProviders.createReader(InputStream json)"
name: "createReader(InputStream json)"
nameWithType: "JsonProviders.createReader(InputStream json)"
summary: "Creates an instance of <xref uid=\"com.azure.json.JsonReader\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonReader\"></xref> that reads a <xref uid=\"java.io.InputStream\" data-throw-if-not-resolved=\"false\" data-raw-source=\"InputStream\"></xref>."
modifiers:
- "static"
parameters:
- description: "The JSON represented as a <xref uid=\"java.io.InputStream\" data-throw-if-not-resolved=\"false\" data-raw-source=\"InputStream\"></xref>."
name: "json"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html\">InputStream</a>"
syntax: "public static JsonReader createReader(InputStream json)"
exceptions:
- description: "If <code>json</code> is null."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html\">IOException</a>"
desc: "Creates an instance of <xref uid=\"com.azure.json.JsonReader\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonReader\"></xref> that reads a <xref uid=\"java.io.InputStream\" data-throw-if-not-resolved=\"false\" data-raw-source=\"InputStream\"></xref>.\n\nIf a provider could not be found on the classpath this will use the default implementation, effectively the equivalent to <xref uid=\"com.azure.json.JsonProviders.createReader(java.io.InputStream,com.azure.json.JsonOptions)\" data-throw-if-not-resolved=\"false\" data-raw-source=\"createReader(json, new JsonOptions())\"></xref>."
returns:
description: "A new instance of <xref uid=\"com.azure.json.JsonReader\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonReader\"></xref>."
type: "<xref href=\"com.azure.json.JsonReader?alt=com.azure.json.JsonReader&text=JsonReader\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.json.JsonProviders.createReader(java.io.InputStream,com.azure.json.JsonOptions)"
fullName: "com.azure.json.JsonProviders.createReader(InputStream json, JsonOptions options)"
name: "createReader(InputStream json, JsonOptions options)"
nameWithType: "JsonProviders.createReader(InputStream json, JsonOptions options)"
summary: "Creates an instance of <xref uid=\"com.azure.json.JsonReader\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonReader\"></xref> that reads a <xref uid=\"java.io.InputStream\" data-throw-if-not-resolved=\"false\" data-raw-source=\"InputStream\"></xref>."
modifiers:
- "static"
parameters:
- description: "The JSON represented as a <xref uid=\"java.io.InputStream\" data-throw-if-not-resolved=\"false\" data-raw-source=\"InputStream\"></xref>."
name: "json"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html\">InputStream</a>"
- description: "<xref uid=\"com.azure.json.JsonOptions\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonOptions\"></xref> to configure the creation of the <xref uid=\"com.azure.json.JsonReader\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonReader\"></xref>."
name: "options"
type: "<xref href=\"com.azure.json.JsonOptions?alt=com.azure.json.JsonOptions&text=JsonOptions\" data-throw-if-not-resolved=\"False\" />"
syntax: "public static JsonReader createReader(InputStream json, JsonOptions options)"
exceptions:
- description: "If <code>json</code> or <code>options</code> is null."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html\">IOException</a>"
desc: "Creates an instance of <xref uid=\"com.azure.json.JsonReader\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonReader\"></xref> that reads a <xref uid=\"java.io.InputStream\" data-throw-if-not-resolved=\"false\" data-raw-source=\"InputStream\"></xref>."
returns:
description: "A new instance of <xref uid=\"com.azure.json.JsonReader\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonReader\"></xref>."
type: "<xref href=\"com.azure.json.JsonReader?alt=com.azure.json.JsonReader&text=JsonReader\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.json.JsonProviders.createReader(java.io.Reader)"
fullName: "com.azure.json.JsonProviders.createReader(Reader json)"
name: "createReader(Reader json)"
nameWithType: "JsonProviders.createReader(Reader json)"
summary: "Creates an instance of <xref uid=\"com.azure.json.JsonReader\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonReader\"></xref> that reads a <xref uid=\"java.io.Reader\" data-throw-if-not-resolved=\"false\" data-raw-source=\"Reader\"></xref>."
modifiers:
- "static"
parameters:
- description: "The JSON represented as a <xref uid=\"java.io.Reader\" data-throw-if-not-resolved=\"false\" data-raw-source=\"Reader\"></xref>."
name: "json"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/Reader.html\">Reader</a>"
syntax: "public static JsonReader createReader(Reader json)"
exceptions:
- description: "If <code>json</code> is null."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html\">IOException</a>"
desc: "Creates an instance of <xref uid=\"com.azure.json.JsonReader\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonReader\"></xref> that reads a <xref uid=\"java.io.Reader\" data-throw-if-not-resolved=\"false\" data-raw-source=\"Reader\"></xref>.\n\nIf a provider could not be found on the classpath this will use the default implementation, effectively the equivalent to <xref uid=\"com.azure.json.JsonProviders.createReader(java.io.Reader,com.azure.json.JsonOptions)\" data-throw-if-not-resolved=\"false\" data-raw-source=\"createReader(json, new JsonOptions())\"></xref>."
returns:
description: "A new instance of <xref uid=\"com.azure.json.JsonReader\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonReader\"></xref>."
type: "<xref href=\"com.azure.json.JsonReader?alt=com.azure.json.JsonReader&text=JsonReader\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.json.JsonProviders.createReader(java.io.Reader,com.azure.json.JsonOptions)"
fullName: "com.azure.json.JsonProviders.createReader(Reader json, JsonOptions options)"
name: "createReader(Reader json, JsonOptions options)"
nameWithType: "JsonProviders.createReader(Reader json, JsonOptions options)"
summary: "Creates an instance of <xref uid=\"com.azure.json.JsonReader\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonReader\"></xref> that reads a <xref uid=\"java.io.Reader\" data-throw-if-not-resolved=\"false\" data-raw-source=\"Reader\"></xref>."
modifiers:
- "static"
parameters:
- description: "The JSON represented as a <xref uid=\"java.io.Reader\" data-throw-if-not-resolved=\"false\" data-raw-source=\"Reader\"></xref>."
name: "json"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/Reader.html\">Reader</a>"
- description: "<xref uid=\"com.azure.json.JsonOptions\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonOptions\"></xref> to configure the creation of the <xref uid=\"com.azure.json.JsonReader\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonReader\"></xref>."
name: "options"
type: "<xref href=\"com.azure.json.JsonOptions?alt=com.azure.json.JsonOptions&text=JsonOptions\" data-throw-if-not-resolved=\"False\" />"
syntax: "public static JsonReader createReader(Reader json, JsonOptions options)"
exceptions:
- description: "If <code>json</code> or <code>options</code> is null."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html\">IOException</a>"
desc: "Creates an instance of <xref uid=\"com.azure.json.JsonReader\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonReader\"></xref> that reads a <xref uid=\"java.io.Reader\" data-throw-if-not-resolved=\"false\" data-raw-source=\"Reader\"></xref>."
returns:
description: "A new instance of <xref uid=\"com.azure.json.JsonReader\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonReader\"></xref>."
type: "<xref href=\"com.azure.json.JsonReader?alt=com.azure.json.JsonReader&text=JsonReader\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.json.JsonProviders.createReader(java.lang.String)"
fullName: "com.azure.json.JsonProviders.createReader(String json)"
name: "createReader(String json)"
nameWithType: "JsonProviders.createReader(String json)"
summary: "Creates an instance of <xref uid=\"com.azure.json.JsonReader\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonReader\"></xref> that reads a <xref uid=\"java.lang.String\" data-throw-if-not-resolved=\"false\" data-raw-source=\"String\"></xref>."
modifiers:
- "static"
parameters:
- description: "The JSON represented as a <xref uid=\"java.lang.String\" data-throw-if-not-resolved=\"false\" data-raw-source=\"String\"></xref>."
name: "json"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public static JsonReader createReader(String json)"
exceptions:
- description: "If <code>json</code> is null."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html\">IOException</a>"
desc: "Creates an instance of <xref uid=\"com.azure.json.JsonReader\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonReader\"></xref> that reads a <xref uid=\"java.lang.String\" data-throw-if-not-resolved=\"false\" data-raw-source=\"String\"></xref>.\n\nIf a provider could not be found on the classpath this will use the default implementation, effectively the equivalent to <xref uid=\"com.azure.json.JsonProviders.createReader(java.lang.String,com.azure.json.JsonOptions)\" data-throw-if-not-resolved=\"false\" data-raw-source=\"createReader(json, new JsonOptions())\"></xref>."
returns:
description: "A new instance of <xref uid=\"com.azure.json.JsonReader\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonReader\"></xref>."
type: "<xref href=\"com.azure.json.JsonReader?alt=com.azure.json.JsonReader&text=JsonReader\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.json.JsonProviders.createReader(java.lang.String,com.azure.json.JsonOptions)"
fullName: "com.azure.json.JsonProviders.createReader(String json, JsonOptions options)"
name: "createReader(String json, JsonOptions options)"
nameWithType: "JsonProviders.createReader(String json, JsonOptions options)"
summary: "Creates an instance of <xref uid=\"com.azure.json.JsonReader\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonReader\"></xref> that reads a <xref uid=\"java.lang.String\" data-throw-if-not-resolved=\"false\" data-raw-source=\"String\"></xref>."
modifiers:
- "static"
parameters:
- description: "The JSON represented as a <xref uid=\"java.lang.String\" data-throw-if-not-resolved=\"false\" data-raw-source=\"String\"></xref>."
name: "json"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- description: "<xref uid=\"com.azure.json.JsonOptions\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonOptions\"></xref> to configure the creation of the <xref uid=\"com.azure.json.JsonReader\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonReader\"></xref>."
name: "options"
type: "<xref href=\"com.azure.json.JsonOptions?alt=com.azure.json.JsonOptions&text=JsonOptions\" data-throw-if-not-resolved=\"False\" />"
syntax: "public static JsonReader createReader(String json, JsonOptions options)"
exceptions:
- description: "If <code>json</code> or <code>options</code> is null."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html\">IOException</a>"
desc: "Creates an instance of <xref uid=\"com.azure.json.JsonReader\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonReader\"></xref> that reads a <xref uid=\"java.lang.String\" data-throw-if-not-resolved=\"false\" data-raw-source=\"String\"></xref>."
returns:
description: "A new instance of <xref uid=\"com.azure.json.JsonReader\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonReader\"></xref>."
type: "<xref href=\"com.azure.json.JsonReader?alt=com.azure.json.JsonReader&text=JsonReader\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.json.JsonProviders.createWriter(java.io.OutputStream)"
fullName: "com.azure.json.JsonProviders.createWriter(OutputStream json)"
name: "createWriter(OutputStream json)"
nameWithType: "JsonProviders.createWriter(OutputStream json)"
summary: "Creates an instance of <xref uid=\"com.azure.json.JsonWriter\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonWriter\"></xref> that writes to an <xref uid=\"java.io.OutputStream\" data-throw-if-not-resolved=\"false\" data-raw-source=\"OutputStream\"></xref>."
modifiers:
- "static"
parameters:
- description: "The JSON represented as an <xref uid=\"java.io.OutputStream\" data-throw-if-not-resolved=\"false\" data-raw-source=\"OutputStream\"></xref>."
name: "json"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/OutputStream.html\">OutputStream</a>"
syntax: "public static JsonWriter createWriter(OutputStream json)"
exceptions:
- description: "If <code>json</code> is null."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html\">IOException</a>"
desc: "Creates an instance of <xref uid=\"com.azure.json.JsonWriter\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonWriter\"></xref> that writes to an <xref uid=\"java.io.OutputStream\" data-throw-if-not-resolved=\"false\" data-raw-source=\"OutputStream\"></xref>.\n\nIf a provider could not be found on the classpath this will use the default implementation, effectively the equivalent to <xref uid=\"com.azure.json.JsonProviders.createWriter(java.io.OutputStream,com.azure.json.JsonOptions)\" data-throw-if-not-resolved=\"false\" data-raw-source=\"createWriter(json, new JsonOptions())\"></xref>."
returns:
description: "A new instance of <xref uid=\"com.azure.json.JsonWriter\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonWriter\"></xref>."
type: "<xref href=\"com.azure.json.JsonWriter?alt=com.azure.json.JsonWriter&text=JsonWriter\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.json.JsonProviders.createWriter(java.io.OutputStream,com.azure.json.JsonOptions)"
fullName: "com.azure.json.JsonProviders.createWriter(OutputStream json, JsonOptions options)"
name: "createWriter(OutputStream json, JsonOptions options)"
nameWithType: "JsonProviders.createWriter(OutputStream json, JsonOptions options)"
summary: "Creates an instance of <xref uid=\"com.azure.json.JsonWriter\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonWriter\"></xref> that writes to an <xref uid=\"java.io.OutputStream\" data-throw-if-not-resolved=\"false\" data-raw-source=\"OutputStream\"></xref>."
modifiers:
- "static"
parameters:
- description: "The JSON represented as an <xref uid=\"java.io.OutputStream\" data-throw-if-not-resolved=\"false\" data-raw-source=\"OutputStream\"></xref>."
name: "json"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/OutputStream.html\">OutputStream</a>"
- description: "<xref uid=\"com.azure.json.JsonOptions\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonOptions\"></xref> to configure the creation of the <xref uid=\"com.azure.json.JsonWriter\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonWriter\"></xref>."
name: "options"
type: "<xref href=\"com.azure.json.JsonOptions?alt=com.azure.json.JsonOptions&text=JsonOptions\" data-throw-if-not-resolved=\"False\" />"
syntax: "public static JsonWriter createWriter(OutputStream json, JsonOptions options)"
exceptions:
- description: "If <code>json</code> or <code>options</code> is null."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html\">IOException</a>"
desc: "Creates an instance of <xref uid=\"com.azure.json.JsonWriter\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonWriter\"></xref> that writes to an <xref uid=\"java.io.OutputStream\" data-throw-if-not-resolved=\"false\" data-raw-source=\"OutputStream\"></xref>."
returns:
description: "A new instance of <xref uid=\"com.azure.json.JsonWriter\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonWriter\"></xref>."
type: "<xref href=\"com.azure.json.JsonWriter?alt=com.azure.json.JsonWriter&text=JsonWriter\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.json.JsonProviders.createWriter(java.io.Writer)"
fullName: "com.azure.json.JsonProviders.createWriter(Writer json)"
name: "createWriter(Writer json)"
nameWithType: "JsonProviders.createWriter(Writer json)"
summary: "Creates an instance of <xref uid=\"com.azure.json.JsonWriter\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonWriter\"></xref> that writes to an <xref uid=\"java.io.Writer\" data-throw-if-not-resolved=\"false\" data-raw-source=\"Writer\"></xref>."
modifiers:
- "static"
parameters:
- description: "The JSON represented as an <xref uid=\"java.io.Writer\" data-throw-if-not-resolved=\"false\" data-raw-source=\"Writer\"></xref>."
name: "json"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/Writer.html\">Writer</a>"
syntax: "public static JsonWriter createWriter(Writer json)"
exceptions:
- description: "If <code>json</code> is null."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html\">IOException</a>"
desc: "Creates an instance of <xref uid=\"com.azure.json.JsonWriter\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonWriter\"></xref> that writes to an <xref uid=\"java.io.Writer\" data-throw-if-not-resolved=\"false\" data-raw-source=\"Writer\"></xref>.\n\nIf a provider could not be found on the classpath this will use the default implementation, effectively the equivalent to <xref uid=\"com.azure.json.JsonProviders.createWriter(java.io.Writer,com.azure.json.JsonOptions)\" data-throw-if-not-resolved=\"false\" data-raw-source=\"createWriter(json, new JsonOptions())\"></xref>."
returns:
description: "A new instance of <xref uid=\"com.azure.json.JsonWriter\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonWriter\"></xref>."
type: "<xref href=\"com.azure.json.JsonWriter?alt=com.azure.json.JsonWriter&text=JsonWriter\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.json.JsonProviders.createWriter(java.io.Writer,com.azure.json.JsonOptions)"
fullName: "com.azure.json.JsonProviders.createWriter(Writer json, JsonOptions options)"
name: "createWriter(Writer json, JsonOptions options)"
nameWithType: "JsonProviders.createWriter(Writer json, JsonOptions options)"
summary: "Creates an instance of <xref uid=\"com.azure.json.JsonWriter\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonWriter\"></xref> that writes to an <xref uid=\"java.io.Writer\" data-throw-if-not-resolved=\"false\" data-raw-source=\"Writer\"></xref>."
modifiers:
- "static"
parameters:
- description: "The JSON represented as an <xref uid=\"java.io.Writer\" data-throw-if-not-resolved=\"false\" data-raw-source=\"Writer\"></xref>."
name: "json"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/Writer.html\">Writer</a>"
- description: "<xref uid=\"com.azure.json.JsonOptions\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonOptions\"></xref> to configure the creation of the <xref uid=\"com.azure.json.JsonWriter\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonWriter\"></xref>."
name: "options"
type: "<xref href=\"com.azure.json.JsonOptions?alt=com.azure.json.JsonOptions&text=JsonOptions\" data-throw-if-not-resolved=\"False\" />"
syntax: "public static JsonWriter createWriter(Writer json, JsonOptions options)"
exceptions:
- description: "If <code>json</code> or <code>options</code> is null."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html\">IOException</a>"
desc: "Creates an instance of <xref uid=\"com.azure.json.JsonWriter\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonWriter\"></xref> that writes to an <xref uid=\"java.io.Writer\" data-throw-if-not-resolved=\"false\" data-raw-source=\"Writer\"></xref>."
returns:
description: "A new instance of <xref uid=\"com.azure.json.JsonWriter\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonWriter\"></xref>."
type: "<xref href=\"com.azure.json.JsonWriter?alt=com.azure.json.JsonWriter&text=JsonWriter\" data-throw-if-not-resolved=\"False\" />"
type: "class"
desc: "Utility class for <xref uid=\"com.azure.json.JsonProvider\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonProvider\"></xref> that will use the implementation of <xref uid=\"com.azure.json.JsonProvider\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonProvider\"></xref> found on the classpath to create instances of <xref uid=\"com.azure.json.JsonReader\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonReader\"></xref> or <xref uid=\"com.azure.json.JsonWriter\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonWriter\"></xref>.\n\nIf no implementation of <xref uid=\"com.azure.json.JsonProvider\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonProvider\"></xref> is found on the classpath a default implementation provided by this library will be used.\n\nAt this time, additional implementations of <xref uid=\"com.azure.json.JsonProvider\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonProvider\"></xref> found on the classpath after the first will cause an <xref uid=\"\" data-throw-if-not-resolved=\"false\" data-raw-source=\"IllegalStateException\"></xref> to be thrown. Ensure the implementation that should be used is the only one listed in `META-INF/services/com.azure.json.JsonProvider` of your JAR."
metadata: {}
package: "com.azure.json"
artifact: com.azure:azure-json:1.3.0