jxUtil 0.6

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
           
 
Constructor Summary
BYTSTRDR(byte[] value)
           
BYTSTRDR(DDM ddm, int len)
           
 
Method Summary
 byte[] getData()
           
 int getLength()
           
 BYTSTRDR pad(byte ch, int len)
           
 String toString()
          Pretty print.
static String toString(BYTSTRDR bytstrdr)
           
static String toString500(BYTSTRDR bytstrdr)
           
static String toStringASCII(BYTSTRDR bytstrdr)
           
static String toStringBytes(BYTSTRDR bytstrdr)
           
 void write(DDM ddm)
          Write out the object.
 
Methods inherited from class org.sourceforge.jxutil.net.ddm.qddprmd.DATA
getCP
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CP

public static final short CP
See Also:
Constant Field Values

value

private byte[] value
Constructor Detail

BYTSTRDR

public BYTSTRDR(byte[] value)

BYTSTRDR

public BYTSTRDR(DDM ddm,
                int len)
         throws IOException
Method Detail

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

jxUtil 0.6

Copyright © 2001,2002 Keve Müller, et al.; see LICENSE file for details.