public class ExplicitBinDescriptor extends java.lang.Object implements ClassIdentifiers
Information about data-bins can be set using the numberOfBytes
or/
and numberOfLayers
attributes.
If both attributes are BinDescriptor.WILDCARD
a
wildcard is represented, but never can be only one of the attributes.
Further information, see ISO/IEC 15444-9 sect. C.8.1.2
Modifier and Type | Field and Description |
---|---|
int |
classIdentifier
Indicates the data-bin class.
|
long |
inClassIdentifier
Definition in
JPIPMessageHeader.inClassIdentifier . |
int |
numberOfBytes
Indicates the number of bytes.
|
int |
numberOfLayers
Indicates the number of layers (packets)
Default value is -1
|
EXTENDED_PRECINCT, EXTENDED_TILE, MAIN_HEADER, METADATA, PRECINCT, TILE, TILE_HEADER
Constructor and Description |
---|
ExplicitBinDescriptor()
Constructor.
|
ExplicitBinDescriptor(ExplicitBinDescriptor descriptor)
Constructor.
|
ExplicitBinDescriptor(int classIdentifier,
long inClassIdentifier)
Constructor.
|
ExplicitBinDescriptor(int classIdentifier,
long inClassIdentifier,
int numberOfLayers,
int numberOfBytes)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isWildcard() |
void |
list(java.io.PrintStream out)
Prints this Explicit Bin Descriptor fields out to the
specified output stream.
|
void |
reset()
Sets the attritutes to its initial values.
|
void |
setWilcard() |
java.lang.String |
toString()
For debugging purposes.
|
public int classIdentifier
Allowed values, see ClassIdentifiers
.
OBS: Cambiar la clase DataBinClass para que solo tenga estes valores, y entonces,
los valores EXTENDED activar una opcion en las correspondientes funciones donde
se indique que es un valor EXTENDED.
public long inClassIdentifier
JPIPMessageHeader.inClassIdentifier
.public int numberOfLayers
Default value is -1
public int numberOfBytes
Default value is -1.
public ExplicitBinDescriptor()
public ExplicitBinDescriptor(int classIdentifier, long inClassIdentifier)
classIdentifier
- definition in classIdentifier
.inClassIdentifier
- definition in inClassIdentifier
.public ExplicitBinDescriptor(int classIdentifier, long inClassIdentifier, int numberOfLayers, int numberOfBytes)
classIdentifier
- definition in classIdentifier
.inClassIdentifier
- definition in inClassIdentifier
.numberOfLayers
- definition in numberOfLayers
numberOfBytes
- definition in numberOfBytes
.public ExplicitBinDescriptor(ExplicitBinDescriptor descriptor)
descriptor
- is an object of this class.public boolean isWildcard()
public void setWilcard()
public void reset()
public java.lang.String toString()
toString
in class java.lang.Object
public void list(java.io.PrintStream out)
out
- an output stream.
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)