wt.infoengine
Class Netlib

java.lang.Object
  extended bywt.infoengine.Netlib

public class Netlib
extends Object


Field Summary
private  byte[] data
           
private  boolean debug
           
private  int dlen
           
private  DataInputStream input
           
private static int MSG_DATA
           
private static int MSG_EOD
           
private static int MSG_FAILURE
           
private static byte[] MSG_OBJECT_RESPONSE
           
private static byte[] MSG_STATUS_RESPONSE
           
private static byte[] MSG_STREAM_RESPONSE
           
private static int MSG_SUCCESS
           
private static byte[] NET_MSG_DATA
           
private static byte[] NET_MSG_EOD
           
private static byte[] NET_MSG_FAILURE
           
private static byte[] NET_MSG_STATUS
           
private static byte[] NET_MSG_SUCCESS
           
private static byte[] NET_MSG_VERSION
           
private static int OBJECT_TYPE
           
private  DataOutputStream output
           
private static int STATUS_TYPE
           
private static int STREAM_TYPE
           
private  int type
           
 
Constructor Summary
Netlib(Socket sock)
           
 
Method Summary
 void ack()
           
 void close()
           
 boolean debugMode()
           
 boolean debugMode(boolean yn)
           
private  byte[] getData()
           
private  int getMsg()
           
private  String getString()
           
private  int getType()
           
private  int intData()
           
private  int length()
           
 void putData(byte[] arr)
           
 void putData(byte[] arr, int len)
           
private  void putMsg(byte[] arr)
           
private  void putMsg(byte[] arr, int len)
           
private  void putMsg(File file)
           
private  void putMsg(int type, String str)
           
private  void putMsg(String str)
           
private  void putMsg(StringBuffer buff)
           
private  void putMsg(Vector list)
           
 IeObject recv()
           
 void send(IeGroup group)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MSG_DATA

private static final int MSG_DATA
See Also:
Constant Field Values

MSG_EOD

private static final int MSG_EOD
See Also:
Constant Field Values

MSG_SUCCESS

private static final int MSG_SUCCESS
See Also:
Constant Field Values

MSG_FAILURE

private static final int MSG_FAILURE
See Also:
Constant Field Values

NET_MSG_DATA

private static byte[] NET_MSG_DATA

NET_MSG_EOD

private static byte[] NET_MSG_EOD

NET_MSG_SUCCESS

private static byte[] NET_MSG_SUCCESS

NET_MSG_FAILURE

private static byte[] NET_MSG_FAILURE

NET_MSG_STATUS

private static byte[] NET_MSG_STATUS

NET_MSG_VERSION

private static byte[] NET_MSG_VERSION

OBJECT_TYPE

private static final int OBJECT_TYPE
See Also:
Constant Field Values

STATUS_TYPE

private static final int STATUS_TYPE
See Also:
Constant Field Values

STREAM_TYPE

private static final int STREAM_TYPE
See Also:
Constant Field Values

MSG_OBJECT_RESPONSE

private static byte[] MSG_OBJECT_RESPONSE

MSG_STATUS_RESPONSE

private static byte[] MSG_STATUS_RESPONSE

MSG_STREAM_RESPONSE

private static byte[] MSG_STREAM_RESPONSE

debug

private boolean debug

input

private DataInputStream input

output

private DataOutputStream output

type

private int type

dlen

private int dlen

data

private byte[] data
Constructor Detail

Netlib

public Netlib(Socket sock)
Method Detail

debugMode

public boolean debugMode()

debugMode

public boolean debugMode(boolean yn)

ack

public void ack()
         throws IOException
Throws:
IOException

recv

public IeObject recv()
              throws IOException
Throws:
IOException

send

public void send(IeGroup group)
          throws IOException
Throws:
IOException

close

public void close()

length

private int length()

getType

private int getType()

getData

private byte[] getData()

intData

private int intData()

getString

private String getString()

getMsg

private int getMsg()
            throws IOException
Throws:
IOException

putData

public void putData(byte[] arr)
             throws IOException
Throws:
IOException

putData

public void putData(byte[] arr,
                    int len)
             throws IOException
Throws:
IOException

putMsg

private void putMsg(byte[] arr,
                    int len)
             throws IOException
Throws:
IOException

putMsg

private void putMsg(byte[] arr)
             throws IOException
Throws:
IOException

putMsg

private void putMsg(Vector list)
             throws IOException
Throws:
IOException

putMsg

private void putMsg(int type,
                    String str)
             throws IOException
Throws:
IOException

putMsg

private void putMsg(String str)
             throws IOException
Throws:
IOException

putMsg

private void putMsg(StringBuffer buff)
             throws IOException
Throws:
IOException

putMsg

private void putMsg(File file)
             throws IOException
Throws:
IOException