public enum XContentType extends Enum<XContentType>
XContent.| 列挙型定数と説明 |
|---|
CBOR
A CBOR based content type.
|
JSON
A JSON based content type.
|
SMILE
The jackson based smile binary format.
|
YAML
A YAML based content type.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
static XContentType |
fromRestContentType(String contentType) |
int |
index() |
static XContentType |
readFrom(StreamInput in) |
abstract String |
restContentType() |
abstract String |
shortName() |
static XContentType |
valueOf(String name)
指定した名前を持つこの型の列挙型定数を返します。
|
static XContentType[] |
values()
この列挙型の定数を含む配列を宣言されている順序で返します。
|
static void |
writeTo(XContentType contentType,
StreamOutput out) |
abstract XContent |
xContent() |
public static final XContentType JSON
public static final XContentType SMILE
public static final XContentType YAML
public static final XContentType CBOR
public static XContentType[] values()
for(XContentType c: XContentType.values()) System.out.println(c);
public static XContentType valueOf(String name)
name - 返される列挙型定数の名前。IllegalArgumentException - この列挙型に、指定した名前の定数がない場合NullPointerException - 引数がnullの場合public static XContentType fromRestContentType(String contentType)
public int index()
public abstract String restContentType()
public abstract String shortName()
public abstract XContent xContent()
public static XContentType readFrom(StreamInput in) throws IOException
IOExceptionpublic static void writeTo(XContentType contentType, StreamOutput out) throws IOException
IOExceptionCopyright © 2009–2016. All rights reserved.