Modifier and Type | Field and Description |
---|---|
private int |
count |
private String |
name |
private int |
start |
Constructor and Description |
---|
UnitType(ByteBuffer bb)
Creates a unit type by reading it from the given byte buffer.
|
UnitType(DataInputStream is)
Creates a unit type by reading it from the given input stream.
|
UnitType(String name,
int start,
int count)
Constructs a UnitType from the given parameters
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
dumpBinary(DataOutputStream os)
Dumps this unit to the given output stream.
|
(package private) int |
getCount()
Gets the count for this type
|
(package private) String |
getName()
Gets the name for this unit type
|
(package private) int |
getStart()
Gets the start index for this type
|
UnitType(String name, int start, int count)
name
- the name of the typestart
- the starting index for this typecount
- the number of elements for this typeUnitType(DataInputStream is) throws IOException
is
- source of the UnitType dataIOException
- if an IO error occursUnitType(ByteBuffer bb) throws IOException
bb
- source of the UnitType dataIOException
- if an IO error occursint getStart()
int getCount()
void dumpBinary(DataOutputStream os) throws IOException
os
- the output streamIOException
- if an error occurs.WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses