public class JsonChunkMeta extends ChunkMeta
Modifier and Type | Field and Description |
---|---|
static java.lang.String | MIME_TYPE The mime type for JSON chunks |
Constructor and Description |
---|
JsonChunkMeta(io.vertx.core.json.JsonObject json) Create a new metadata object from a JsonObject |
JsonChunkMeta(java.lang.String parentFieldName, int start, int end) Create a new metadata object |
JsonChunkMeta(java.lang.String parentFieldName, int start, int end, java.lang.String mimeType) Create a new metadata object |
Modifier and Type | Method and Description |
---|---|
boolean | equals(java.lang.Object obj) |
java.lang.String | getParentFieldName() |
int | hashCode() |
io.vertx.core.json.JsonObject | toJsonObject() |
getEnd, getMimeType, getStart
public static final java.lang.String MIME_TYPE
public JsonChunkMeta(java.lang.String parentFieldName, int start, int end)
parentFieldName
- the name of the field whose value is equal to this chunk or, if the field is an array, whose value contains this chunk (may be null
if the chunk does not have a parent)start
- the position in the stored blob where the chunk startsend
- the position in the stored blob where the chunk endspublic JsonChunkMeta(java.lang.String parentFieldName, int start, int end, java.lang.String mimeType)
parentFieldName
- the name of the field whose value is equal to this chunk or, if the field is an array, whose value contains this chunk (may be null
if the chunk does not have a parent)start
- the position in the stored blob where the chunk startsend
- the position in the stored blob where the chunk endsmimeType
- the chunk's mime type (should be "application/json" or a subtype)public JsonChunkMeta(io.vertx.core.json.JsonObject json)
json
- the JsonObjectpublic java.lang.String getParentFieldName()
null
if the chunk does not have a parent)public io.vertx.core.json.JsonObject toJsonObject()
toJsonObject
in class ChunkMeta
JsonObject