public class DataBin extends java.lang.Object implements ClassIdentifiers
Further information, see ISO/IEC 15444-9 section A.3
Modifier and Type | Field and Description |
---|---|
protected int |
classIdentifier
Definition in
JPIPMessageHeader.classIdentifier
Allowed values, see ClassIdentifiers . |
protected boolean |
complete
A boolean which indicates whether all data for this data bin has been
received.
|
private java.util.concurrent.locks.ReentrantLock |
mutex |
EXTENDED_PRECINCT, EXTENDED_TILE, MAIN_HEADER, METADATA, PRECINCT, TILE, TILE_HEADER
Constructor and Description |
---|
DataBin(int classIdentifier)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getClassIdentifier()
Returns the
classIdentifier attribute. |
boolean |
isComplete() |
boolean |
isHeldByCurrentThread() |
boolean |
isLocked() |
void |
list(java.io.PrintStream out)
Prints this DataBin out to the specified output stream.
|
void |
lock()
(non-Javadoc)
|
void |
reset()
Set attributes to its initial values.
|
java.lang.String |
toString() |
void |
unlock() |
protected int classIdentifier
JPIPMessageHeader.classIdentifier
Allowed values, see ClassIdentifiers
.
protected boolean complete
Definition in JPIPMessageHeader.isLastByte
private java.util.concurrent.locks.ReentrantLock mutex
public DataBin(int classIdentifier)
inClassIdentifier
- definition in #inClassIdentifier
.public int getClassIdentifier()
classIdentifier
attribute.classIdentifier
attribute.public final boolean isComplete()
public void reset()
public void lock()
ReentrantLock.lock()
public void unlock()
public boolean isLocked()
public boolean isHeldByCurrentThread()
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)