public class XMLChunkMeta extends ChunkMeta
Modifier and Type | Field and Description |
---|---|
static java.lang.String | MIME_TYPE The mime type for XML chunks |
Constructor and Description |
---|
XMLChunkMeta(io.vertx.core.json.JsonObject json) Create a new metadata object from a JsonObject |
XMLChunkMeta(java.util.List<XMLStartElement> parents, int start, int end) Create a new metadata object |
Modifier and Type | Method and Description |
---|---|
boolean | equals(java.lang.Object obj) |
java.util.List<XMLStartElement> | getParents() |
int | hashCode() |
io.vertx.core.json.JsonObject | toJsonObject() |
getEnd, getMimeType, getStart
public static final java.lang.String MIME_TYPE
public XMLChunkMeta(java.util.List<XMLStartElement> parents, int start, int end)
parents
- the chunk's parents (i.e. the XML start elements the chunk is wrapped in)start
- the position in the stored blob where the chunk starts (typically right after all its parent XML elements)end
- the position in the stored blob where the chunk ends (typically right before all its parent XML elements are closed)public XMLChunkMeta(io.vertx.core.json.JsonObject json)
json
- the JsonObjectpublic java.util.List<XMLStartElement> getParents()
public io.vertx.core.json.JsonObject toJsonObject()
toJsonObject
in class ChunkMeta
JsonObject