CborXContent
, JsonXContent
, SmileXContent
, YamlXContent
public interface XContent
Modifier and Type | Method | Description |
---|---|---|
default XContentGenerator |
createGenerator(java.io.OutputStream os) |
Creates a new generator using the provided output stream.
|
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,
DeprecationHandler deprecationHandler,
byte[] data) |
Creates a parser over the provided bytes.
|
XContentParser |
createParser(NamedXContentRegistry xContentRegistry,
DeprecationHandler deprecationHandler,
byte[] data,
int offset,
int length) |
Creates a parser over the provided bytes.
|
XContentParser |
createParser(NamedXContentRegistry xContentRegistry,
DeprecationHandler deprecationHandler,
java.io.InputStream is) |
Creates a parser over the provided input stream.
|
XContentParser |
createParser(NamedXContentRegistry xContentRegistry,
DeprecationHandler deprecationHandler,
java.io.Reader reader) |
Creates a parser over the provided reader.
|
XContentParser |
createParser(NamedXContentRegistry xContentRegistry,
DeprecationHandler deprecationHandler,
java.lang.String content) |
Creates a parser over the provided string content.
|
static boolean |
isStrictDuplicateDetectionEnabled() |
|
byte |
streamSeparator() |
|
XContentType |
type() |
The type this content handles and produces.
|
static boolean isStrictDuplicateDetectionEnabled()
XContentType type()
byte streamSeparator()
default XContentGenerator createGenerator(java.io.OutputStream os) throws java.io.IOException
java.io.IOException
XContentGenerator createGenerator(java.io.OutputStream os, java.util.Set<java.lang.String> includes, java.util.Set<java.lang.String> excludes) throws java.io.IOException
os
- 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.IOException
XContentParser createParser(NamedXContentRegistry xContentRegistry, DeprecationHandler deprecationHandler, java.lang.String content) throws java.io.IOException
java.io.IOException
XContentParser createParser(NamedXContentRegistry xContentRegistry, DeprecationHandler deprecationHandler, java.io.InputStream is) throws java.io.IOException
java.io.IOException
XContentParser createParser(NamedXContentRegistry xContentRegistry, DeprecationHandler deprecationHandler, byte[] data) throws java.io.IOException
java.io.IOException
XContentParser createParser(NamedXContentRegistry xContentRegistry, DeprecationHandler deprecationHandler, byte[] data, int offset, int length) throws java.io.IOException
java.io.IOException
XContentParser createParser(NamedXContentRegistry xContentRegistry, DeprecationHandler deprecationHandler, java.io.Reader reader) throws java.io.IOException
java.io.IOException