public class XMLChunkMeta extends ChunkMeta
| Modifier and Type | Field and Description |
|---|---|
static String | MIME_TYPEThe mime type for XML chunks |
| Constructor and Description |
|---|
XMLChunkMeta(JsonObject json)Create a new metadata object from a JsonObject |
XMLChunkMeta(List<XMLStartElement> parents, int start, int end)Create a new metadata object |
| Modifier and Type | Method and Description |
|---|---|
boolean | equals(Object obj) |
List<XMLStartElement> | getParents() |
int | hashCode() |
JsonObject | toJsonObject() |
getEnd, getMimeType, getStartpublic static final String MIME_TYPE
public XMLChunkMeta(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(JsonObject json)
json - the JsonObjectpublic List<XMLStartElement> getParents()
public JsonObject toJsonObject()
toJsonObject in class ChunkMetaJsonObject