public class BoxIndexing extends JPEG2KBox
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.Integer,BoxIndexing> |
childs |
private long |
length |
private int |
metadataID |
private static int |
nextID
Attribute used to record the next metadata-bin ID to be assigned following
an incremental criterion.
|
private long |
offset |
private BoxIndexing |
parent |
Constructor and Description |
---|
BoxIndexing(BoxIndexing parent,
int type,
long offset,
long length) |
BoxIndexing(BoxIndexing parent,
int type,
long offset,
long length,
boolean superbox) |
BoxIndexing(BoxIndexing parent,
java.lang.String type,
long offset,
long length) |
Modifier and Type | Method and Description |
---|---|
void |
addChild(BoxIndexing child) |
BoxIndexing |
getChild(int id) |
java.util.Collection<BoxIndexing> |
getChilds() |
java.util.Set<java.lang.Integer> |
getChildsKeys() |
int |
getChildType(int id) |
java.lang.String |
getChildTypeAsString(int id) |
int |
getID() |
int |
getNumChilds() |
long |
getOffset() |
BoxIndexing |
getParent() |
boolean |
isLeaf() |
boolean |
isRoot() |
boolean |
isSuperbox() |
void |
list(java.io.PrintStream out)
Prints this Box out to the specified output stream.
|
java.lang.String |
toString() |
getType, getTypeAsString
private int metadataID
private long offset
private long length
private BoxIndexing parent
private java.util.Map<java.lang.Integer,BoxIndexing> childs
private static int nextID
See metadataID
attribute.
public BoxIndexing(BoxIndexing parent, int type, long offset, long length)
parent
- type
- offset
- public BoxIndexing(BoxIndexing parent, java.lang.String type, long offset, long length)
parent
- type
- offset
- public BoxIndexing(BoxIndexing parent, int type, long offset, long length, boolean superbox)
parent
- type
- offset
- superbox
- public int getID()
public long getOffset()
public boolean isSuperbox()
public boolean isRoot()
public boolean isLeaf()
public BoxIndexing getParent()
public void addChild(BoxIndexing child)
child
- public BoxIndexing getChild(int id)
id
- public java.util.Set<java.lang.Integer> getChildsKeys()
public java.util.Collection<BoxIndexing> getChilds()
public int getChildType(int id)
public java.lang.String getChildTypeAsString(int id)
public int getNumChilds()
CADI - Copyright (C) 2007
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
Group on Interactive Coding of Images (GICI) (contact)