Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.neuron.jaffer
Class DSI_Packet  view DSI_Packet download DSI_Packet.java

java.lang.Object
  extended bycom.neuron.jaffer.Utility
      extended bycom.neuron.jaffer.DSI_Packet
All Implemented Interfaces:
DSI_Constants

class DSI_Packet
extends Utility
implements DSI_Constants


Field Summary
private  int command
           
private  int dataLength
           
private  int errDataOff
           
private  int flags
           
private  byte[] header
           
private static int maxR
           
private static int maxW
           
private  byte[] payload
           
private  int requestID
           
private  int reserved
           
private  ByteWriter writer
           
 
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
 
Constructor Summary
(package private) DSI_Packet(java.io.InputStream is)
           
(package private) DSI_Packet(int bufsize)
           
(package private) DSI_Packet(int f, int c, int id, byte[] d)
           
 
Method Summary
 void dumpRecvPayload(java.lang.String prefix)
           
 void dumpSendPayload(java.lang.String prefix)
           
 int getBufferSize()
           
 int getCommand()
           
 int getFlags()
           
 ByteReader getReader()
           
 int getRequestID()
           
 ByteWriter getWriter()
           
 boolean isReply()
           
 boolean isRequest()
           
 void read(java.io.InputStream is)
           
private  void readData(java.io.InputStream is, byte[] b, int len)
           
 void reset()
           
 void setDataOffset(int ec)
           
 void setErrorCode(int ec)
           
 void setReply()
           
 void setRequest()
           
 void setRequestID(int id)
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 void write(java.io.OutputStream os)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

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
Method Detail

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()).