org.sourceforge.jxutil.net.ddm.qddprmd
Class BYTSTRDR
java.lang.Object
|
+--org.sourceforge.jxutil.net.ddm.qddprmd.DATA
|
+--org.sourceforge.jxutil.net.ddm.qddprmd.FIELD
|
+--org.sourceforge.jxutil.net.ddm.qddprmd.BYTSTRDR
- Direct Known Subclasses:
- SECTKN
- public class BYTSTRDR
- extends FIELD
A Byte String.
Byte string (BYTSTRDR). A Discrete Unit of Data is an ordered and
contiguous sequence of bytes. Length Specification The length of a
byte string (BYTSTRDR) is specified in bytes. The literal form of a
byte string is a hexadecimal string whose length is an even number;
for example, X'01010101' or X'3D2B11'.
Field Summary |
static short |
CP
|
private byte[] |
value
|
Methods inherited from class org.sourceforge.jxutil.net.ddm.qddprmd.DATA |
getCP |
CP
public static final short CP
- See Also:
- Constant Field Values
value
private byte[] value
BYTSTRDR
public BYTSTRDR(byte[] value)
BYTSTRDR
public BYTSTRDR(DDM ddm,
int len)
throws IOException
getData
public byte[] getData()
getLength
public int getLength()
pad
public BYTSTRDR pad(byte ch,
int len)
toString
public String toString()
- Description copied from class:
DATA
- Pretty print.
- Overrides:
toString
in class DATA
- Returns:
- the class name and code point value.
toString
public static String toString(BYTSTRDR bytstrdr)
toString500
public static String toString500(BYTSTRDR bytstrdr)
toStringASCII
public static String toStringASCII(BYTSTRDR bytstrdr)
toStringBytes
public static String toStringBytes(BYTSTRDR bytstrdr)
write
public void write(DDM ddm)
throws IOException
- Description copied from class:
DATA
- Write out the object.
- Overrides:
write
in class DATA
- Parameters:
ddm
- the DDM stream
IOException
Copyright © 2001,2002 Keve Müller, et al.; see LICENSE file for details.