public class ChunkMeta extends Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
end |
protected String |
mimeType |
protected int |
start |
| Constructor and Description |
|---|
ChunkMeta(int start,
int end,
String mimeType)
Create a new metadata object
|
ChunkMeta(JsonObject json)
Create a new metadata object from a JsonObject
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getEnd() |
String |
getMimeType() |
int |
getStart() |
int |
hashCode() |
JsonObject |
toJsonObject() |
protected final int start
protected final int end
protected final String mimeType
public ChunkMeta(int start,
int end,
String mimeType)
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 (typically "application/xml" or
"application/json")public ChunkMeta(JsonObject json)
json - the JsonObjectpublic int getStart()
public int getEnd()
public String getMimeType()
public JsonObject toJsonObject()
JsonObject