|
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
public class NumberMsg
This message represents an number using leading-zero padding format.
| Field Summary | |
|---|---|
static java.lang.String |
version
|
| Constructor Summary | |
|---|---|
NumberMsg()
Constructor |
|
NumberMsg(byte[] number,
int width,
int radix)
Constructor |
|
NumberMsg(long number,
int width,
int radix)
Constructor |
|
NumberMsg(java.lang.String number,
int width,
int radix)
Constructor |
|
| Method Summary | |
|---|---|
byte[] |
getBytes()
Return leading-zero padding representation of an number with specified width. |
long |
getNumber()
Returns the number. |
int |
getRadix()
Returns the radix. |
int |
getWidth()
Returns the width. |
void |
setNumber(long number)
Sets the number. |
void |
setRadix(int radix)
Sets the radix. |
void |
setWidth(int width)
Sets the width. |
| 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 NumberMsg()
public NumberMsg(long number,
int width,
int radix)
throws java.io.IOException
number - The numberwidth - The widthradix - The radix
java.io.IOException - on error
public NumberMsg(java.lang.String number,
int width,
int radix)
throws java.io.IOException
number - The numberwidth - The widthradix - The radix
java.io.IOException - on error
public NumberMsg(byte[] number,
int width,
int radix)
throws java.io.IOException
number - The number in format of byte[]width - The widthradix - The radix
java.io.IOException - on error| Method Detail |
|---|
public int getWidth()
public long getNumber()
public int getRadix()
public void setWidth(int width)
throws java.io.IOException
width - The width to set
java.io.IOException - on error
public void setNumber(long number)
throws java.io.IOException
number - The number to set
java.io.IOException - on error
public void setRadix(int radix)
throws java.io.IOException
radix - The radix to set
java.io.IOException - on error
public byte[] getBytes()
throws java.io.IOException
getBytes in interface AbstractMsgjava.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 | ||||||||