public abstract class JPEG2KLogicalTarget
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.HashMap<java.lang.Integer,JPEG2KCodestream> |
codestreams |
protected CADILog |
log |
protected java.lang.String |
tid
Definition in
TargetField.tid. |
protected int |
TID_DEFAULT_LENGTH
Default length of the
tid. |
| Constructor and Description |
|---|
JPEG2KLogicalTarget()
Constructor.
|
JPEG2KLogicalTarget(java.lang.String tid,
CADILog log)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
generateTid()
It will generate a Target-ID for that logical target, i.e. a string that
absolutely identifies the logical target.
|
protected void |
generateTid(int length)
This method is used to generate a target identifier for the this logical
target, i.e. a string that absolutely identifies the logical target.
|
JPEG2KCodestream |
getCodestream(int index)
Returns the
#codestream attribute. |
long |
getDataLength(long inClassIdentifier)
Returns the length of the data bin of which unique identifier is
inClassIdentifier.
|
int |
getLastCompleteLayer(long inClassIdentifier,
long dataBinLength) |
int |
getPacketLength(long inClassIdentifier,
int layer)
Returns the length of a packet.
|
int |
getPacketOffsetWithDataBin(long inClassIdentifier,
int layer)
Returns the offset of a packet in the data bin.
|
java.lang.String |
getTID()
Returns the
tid attribute. |
void |
list(java.io.PrintStream out)
Prints the JPC logical target data out to the specified output stream.
|
java.lang.String |
toString() |
protected java.lang.String tid
TargetField.tid.protected CADILog log
protected java.util.HashMap<java.lang.Integer,JPEG2KCodestream> codestreams
protected final int TID_DEFAULT_LENGTH
tid.public JPEG2KCodestream getCodestream(int index)
#codestream attribute.#codestream attribute.public int getLastCompleteLayer(long inClassIdentifier,
long dataBinLength)
inClassIdentifier - dataBinLength - public int getPacketLength(long inClassIdentifier,
int layer)
inClassIdentifier - definition in JPIPMessageHeader.inClassIdentifier.layer - the number of the layer.public long getDataLength(long inClassIdentifier)
inClassIdentifier - definition in
JPIPMessageHeader.inClassIdentifier
.public int getPacketOffsetWithDataBin(long inClassIdentifier,
int layer)
inClassIdentifier - definition in JPIPMessageHeader.inClassIdentifier.layer - the layer which offset is requestedpublic java.lang.String toString()
toString in class java.lang.Objectpublic void list(java.io.PrintStream out)
out - an output stream.protected void generateTid()
This a generic function, but it is recommended classes that inherits from this one should implement their own methods.
NOTICE: This method must be called from the constructor of the class.
tidprotected void generateTid(int length)
This a generic function, but classes that inherits from this one can implement their own methods.
NOTICE: This method must be called from the constructor of the class.
length - the length of the identifier.tid
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)