public class GeoJsonChunkMeta extends JsonChunkMeta
| Modifier and Type | Field and Description | 
|---|---|
static String | MIME_TYPEThe mime type for GeoJSON chunks  | 
| Constructor and Description | 
|---|
GeoJsonChunkMeta(JsonObject json)Create a new metadata object from a JsonObject  | 
GeoJsonChunkMeta(String type, JsonChunkMeta chunkMeta)Makes a copy of the given  JsonChunkMeta object but assigns a GeoJSON object type | 
GeoJsonChunkMeta(String type, String parentFieldName, int start, int end)Create a new metadata object  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | equals(Object obj)  | 
String | getType()  | 
int | hashCode()  | 
JsonObject | toJsonObject()  | 
getParentFieldNamegetEnd, getMimeType, getStartpublic static final String MIME_TYPE
public GeoJsonChunkMeta(String type, 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(JsonObject json)
json - the JsonObjectpublic GeoJsonChunkMeta(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 String getType()
public int hashCode()
hashCode in class JsonChunkMetapublic boolean equals(Object obj)
equals in class JsonChunkMetapublic JsonObject toJsonObject()
toJsonObject in class JsonChunkMetaJsonObject