| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
JSON_ALLOW_UNQUOTED_FIELD_NAMES |
static JsonXContent |
jsonXContent |
static boolean |
unquotedFieldNamesSet |
| Modifier and Type | Method and Description |
|---|---|
static XContentBuilder |
contentBuilder() |
XContentGenerator |
createGenerator(java.io.OutputStream os,
java.util.Set<java.lang.String> includes,
java.util.Set<java.lang.String> excludes)
Creates a new generator using the provided output stream and some inclusive and/or exclusive filters.
|
XContentParser |
createParser(NamedXContentRegistry xContentRegistry,
byte[] data)
Creates a parser over the provided bytes.
|
XContentParser |
createParser(NamedXContentRegistry xContentRegistry,
byte[] data,
int offset,
int length)
Creates a parser over the provided bytes.
|
XContentParser |
createParser(NamedXContentRegistry xContentRegistry,
BytesReference bytes)
Creates a parser over the provided bytes.
|
XContentParser |
createParser(NamedXContentRegistry xContentRegistry,
java.io.InputStream is)
Creates a parser over the provided input stream.
|
XContentParser |
createParser(NamedXContentRegistry xContentRegistry,
java.io.Reader reader)
Creates a parser over the provided reader.
|
XContentParser |
createParser(NamedXContentRegistry xContentRegistry,
java.lang.String content)
Creates a parser over the provided string content.
|
byte |
streamSeparator() |
XContentType |
type()
The type this content handles and produces.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateGeneratorpublic static final java.lang.String JSON_ALLOW_UNQUOTED_FIELD_NAMES
public static final JsonXContent jsonXContent
public static final boolean unquotedFieldNamesSet
public static XContentBuilder contentBuilder() throws java.io.IOException
java.io.IOExceptionpublic XContentType type()
XContentpublic byte streamSeparator()
streamSeparator in interface XContentpublic XContentGenerator createGenerator(java.io.OutputStream os, java.util.Set<java.lang.String> includes, java.util.Set<java.lang.String> excludes) throws java.io.IOException
XContentcreateGenerator in interface XContentos - the output streamincludes - the inclusive filters: only fields and objects that match the inclusive filters will be written to the output.excludes - the exclusive filters: only fields and objects that don't match the exclusive filters will be written to the output.java.io.IOExceptionpublic XContentParser createParser(NamedXContentRegistry xContentRegistry, java.lang.String content) throws java.io.IOException
XContentcreateParser in interface XContentjava.io.IOExceptionpublic XContentParser createParser(NamedXContentRegistry xContentRegistry, java.io.InputStream is) throws java.io.IOException
XContentcreateParser in interface XContentjava.io.IOExceptionpublic XContentParser createParser(NamedXContentRegistry xContentRegistry, byte[] data) throws java.io.IOException
XContentcreateParser in interface XContentjava.io.IOExceptionpublic XContentParser createParser(NamedXContentRegistry xContentRegistry, byte[] data, int offset, int length) throws java.io.IOException
XContentcreateParser in interface XContentjava.io.IOExceptionpublic XContentParser createParser(NamedXContentRegistry xContentRegistry, BytesReference bytes) throws java.io.IOException
XContentcreateParser in interface XContentjava.io.IOExceptionpublic XContentParser createParser(NamedXContentRegistry xContentRegistry, java.io.Reader reader) throws java.io.IOException
XContentcreateParser in interface XContentjava.io.IOException