| Modifier and Type | Field and Description |
|---|---|
static JsonXContent |
jsonXContent |
| Modifier and Type | Method and Description |
|---|---|
static XContentBuilder |
contentBuilder() |
XContentGenerator |
createGenerator(OutputStream os)
Creates a new generator using the provided output stream.
|
XContentGenerator |
createGenerator(OutputStream os,
String[] filters)
Creates a new generator using the provided output stream and some filters.
|
XContentParser |
createParser(byte[] data)
Creates a parser over the provided bytes.
|
XContentParser |
createParser(byte[] data,
int offset,
int length)
Creates a parser over the provided bytes.
|
XContentParser |
createParser(BytesReference bytes)
Creates a parser over the provided bytes.
|
XContentParser |
createParser(InputStream is)
Creates a parser over the provided input stream.
|
XContentParser |
createParser(Reader reader)
Creates a parser over the provided reader.
|
XContentParser |
createParser(String content)
Creates a parser over the provided string content.
|
byte |
streamSeparator() |
XContentType |
type()
The type this content handles and produces.
|
public static final JsonXContent jsonXContent
public static XContentBuilder contentBuilder() throws IOException
IOExceptionpublic XContentType type()
XContentpublic byte streamSeparator()
streamSeparator in interface XContentpublic XContentGenerator createGenerator(OutputStream os) throws IOException
XContentcreateGenerator in interface XContentIOExceptionpublic XContentGenerator createGenerator(OutputStream os, String[] filters) throws IOException
XContentcreateGenerator in interface XContentIOExceptionpublic XContentParser createParser(String content) throws IOException
XContentcreateParser in interface XContentIOExceptionpublic XContentParser createParser(InputStream is) throws IOException
XContentcreateParser in interface XContentIOExceptionpublic XContentParser createParser(byte[] data) throws IOException
XContentcreateParser in interface XContentIOExceptionpublic XContentParser createParser(byte[] data, int offset, int length) throws IOException
XContentcreateParser in interface XContentIOExceptionpublic XContentParser createParser(BytesReference bytes) throws IOException
XContentcreateParser in interface XContentIOExceptionpublic XContentParser createParser(Reader reader) throws IOException
XContentcreateParser in interface XContentIOExceptionCopyright © 2009–2016. All rights reserved.