public class GeoJsonChunkMeta extends JsonChunkMeta
Modifier and Type | Field and Description |
---|---|
static java.lang.String | MIME_TYPE The mime type for GeoJSON chunks |
Constructor and Description |
---|
GeoJsonChunkMeta(io.vertx.core.json.JsonObject json) Create a new metadata object from a JsonObject |
GeoJsonChunkMeta(java.lang.String type, JsonChunkMeta chunkMeta) Makes a copy of the given JsonChunkMeta object but assigns a GeoJSON object type |
GeoJsonChunkMeta(java.lang.String type, java.lang.String parentFieldName, int start, int end) Create a new metadata object |
Modifier and Type | Method and Description |
---|---|
boolean | equals(java.lang.Object obj) |
java.lang.String | getType() |
int | hashCode() |
io.vertx.core.json.JsonObject | toJsonObject() |
getParentFieldName
getEnd, getMimeType, getStart
public static final java.lang.String MIME_TYPE
public GeoJsonChunkMeta(java.lang.String type, java.lang.String parentFieldName, int start, int end)
type
- the type of the GeoJSON object represented by the chunkparentFieldName
- 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 GeoJsonChunkMeta(io.vertx.core.json.JsonObject json)
json
- the JsonObjectpublic GeoJsonChunkMeta(java.lang.String type, JsonChunkMeta chunkMeta)
JsonChunkMeta
object but assigns a GeoJSON object typetype
- the type of the GeoJSON object represented by the chunkchunkMeta
- the chunk metadata object to copypublic java.lang.String getType()
public int hashCode()
hashCode
in class JsonChunkMeta
public boolean equals(java.lang.Object obj)
equals
in class JsonChunkMeta
public io.vertx.core.json.JsonObject toJsonObject()
toJsonObject
in class JsonChunkMeta
JsonObject