public class ChunkMeta
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int | end |
protected java.lang.String | mimeType |
protected int | start |
Constructor and Description |
---|
ChunkMeta(int start, int end, java.lang.String mimeType) Create a new metadata object |
ChunkMeta(io.vertx.core.json.JsonObject json) Create a new metadata object from a JsonObject |
Modifier and Type | Method and Description |
---|---|
boolean | equals(java.lang.Object obj) |
int | getEnd() |
java.lang.String | getMimeType() |
int | getStart() |
int | hashCode() |
io.vertx.core.json.JsonObject | toJsonObject() |
protected final int start
protected final int end
protected final java.lang.String mimeType
public ChunkMeta(int start, int end, java.lang.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(io.vertx.core.json.JsonObject json)
json
- the JsonObjectpublic int getStart()
public int getEnd()
public java.lang.String getMimeType()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public io.vertx.core.json.JsonObject toJsonObject()
JsonObject