java.lang.Object
com.neuron.jaffer.Utility
com.neuron.jaffer.DSI_Packet
- All Implemented Interfaces:
- DSI_Constants
- class DSI_Packet
- extends Utility
- implements DSI_Constants
| Fields inherited from class com.neuron.jaffer.Utility |
|
| Fields inherited from interface com.neuron.jaffer.DSI_Constants |
CMD_ATTENTION, CMD_CLOSE_SESSION, CMD_COMMAND, CMD_GET_STATUS, CMD_OPEN_SESSION, CMD_TICKLE, CMD_WRITE, COMMAND, DSI_REPLY, DSI_REQUEST, OPT_ATTN_QUANT, OPT_SERV_QUANT |
| Methods inherited from class com.neuron.jaffer.Utility |
afp2unixTime, bits, dump, dump, dump, dump, empty, error, hasBits, hex, hex, hex, isValidLongName, list, readAFPString, readCString, readInt2, readInt4, readInt8, readPString, readPStringArray, unix2afpTime, writeInt2, writeInt4, writeInt8, writePString, writePStringArray |
maxR
private static int maxR
maxW
private static int maxW
flags
private int flags
command
private int command
requestID
private int requestID
errDataOff
private int errDataOff
dataLength
private int dataLength
reserved
private int reserved
payload
private byte[] payload
header
private byte[] header
writer
private ByteWriter writer
DSI_Packet
DSI_Packet(int bufsize)
DSI_Packet
DSI_Packet(java.io.InputStream is)
throws java.io.IOException
DSI_Packet
DSI_Packet(int f,
int c,
int id,
byte[] d)
throws java.io.IOException
reset
public void reset()
getBufferSize
public int getBufferSize()
dumpRecvPayload
public void dumpRecvPayload(java.lang.String prefix)
dumpSendPayload
public void dumpSendPayload(java.lang.String prefix)
getReader
public ByteReader getReader()
getWriter
public ByteWriter getWriter()
getFlags
public int getFlags()
getCommand
public int getCommand()
getRequestID
public int getRequestID()
setRequestID
public void setRequestID(int id)
isRequest
public boolean isRequest()
isReply
public boolean isReply()
setRequest
public void setRequest()
setReply
public void setReply()
setErrorCode
public void setErrorCode(int ec)
setDataOffset
public void setDataOffset(int ec)
readData
private void readData(java.io.InputStream is,
byte[] b,
int len)
throws java.io.IOException
read
public void read(java.io.InputStream is)
throws java.io.IOException
write
public void write(java.io.OutputStream os)
throws java.io.IOException
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object
- Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method
never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string
concatenation with this object. If the result is
null, string concatenation will instead
use "null".
The default implementation returns
getClass().getName() + "@" +
Integer.toHexString(hashCode()).