|
Sun Adapter for TCP/IP HL7 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stc.connector.message.common.NumberMsg
com.stc.connector.message.common.BinaryNumberMsg
public class BinaryNumberMsg
This message represents an number in binary format. The valid width of the number is 1, 2, 4, 8.
Field Summary | |
---|---|
static java.lang.String |
version
|
Constructor Summary | |
---|---|
BinaryNumberMsg(byte[] binaryNumber)
Constructor |
|
BinaryNumberMsg(long number,
int width)
Constructor |
|
BinaryNumberMsg(java.lang.String number)
Constructor |
Method Summary | |
---|---|
byte[] |
getBinaryNumber()
Gets the binary number. |
byte[] |
getBytes()
Return leading-zero padding representation of an number with specified width. |
int |
getWidth()
Returns the width. |
void |
setBinaryNumber(byte[] binaryNumber)
Sets the binary number. |
void |
setWidth(int width)
Sets the width. |
Methods inherited from class com.stc.connector.message.common.NumberMsg |
---|
getNumber, getRadix, setNumber, setRadix |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String version
Constructor Detail |
---|
public BinaryNumberMsg(long number, int width) throws java.io.IOException
number
- The numberwidth
- The valid width of the number is 1, 2, 4, 8.
java.io.IOException
- on errorpublic BinaryNumberMsg(byte[] binaryNumber) throws java.io.IOException
binaryNumber
- The binary number in format of byte array.
The valid length of the byte array is 1, 2, 4, 8.
java.io.IOException
- on errorpublic BinaryNumberMsg(java.lang.String number) throws java.io.IOException
number
- The number in format of String
java.io.IOException
- on errorMethod Detail |
---|
public int getWidth()
NumberMsg
getWidth
in class NumberMsg
NumberMsg.getWidth()
public void setWidth(int width) throws java.io.IOException
NumberMsg
setWidth
in class NumberMsg
width
- The width to set
java.io.IOException
- on errorNumberMsg.setWidth(int)
public byte[] getBinaryNumber()
public void setBinaryNumber(byte[] binaryNumber)
binaryNumber
- The binary number.public byte[] getBytes() throws java.io.IOException
getBytes
in interface AbstractMsg
getBytes
in class NumberMsg
java.io.IOException
- on errorAbstractMsg.getBytes()
|
Sun Adapter for TCP/IP HL7 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |