BEA Systems, Inc.

WebLogic Server 6.1 API Reference

weblogic.jdbc.informix4
Class TdsPacket

java.lang.Object
  |
  +--weblogic.jdbc.informix4.TdsPacket

public class TdsPacket
extends java.lang.Object

Author:
Copyright © 2001 BEA Systems, Inc. All Rights Reserved.

Constructor Summary
TdsPacket()
          Initialize as empty packet, used when packet's data is received from the network
TdsPacket(short iType, byte[] iData)
          Initialize the packet given a packet type and payload
TdsPacket(java.lang.String iSQL)
          Initialize an outgoing TDS packet from an SQL string
 
Method Summary
static java.lang.String dump(byte[] data)
           
static java.lang.String dump(byte[] data, int length)
           
 byte[] getData()
           
 int getType()
           
 void receive(java.net.Socket socket)
           
 void send(java.net.Socket socket)
           
static java.lang.String toHex(byte number)
           
static java.lang.String toHex(int number)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TdsPacket

public TdsPacket()
Initialize as empty packet, used when packet's data is received from the network

TdsPacket

public TdsPacket(short iType,
                 byte[] iData)
Initialize the packet given a packet type and payload

TdsPacket

public TdsPacket(java.lang.String iSQL)
Initialize an outgoing TDS packet from an SQL string
Method Detail

send

public void send(java.net.Socket socket)
          throws java.sql.SQLException

receive

public void receive(java.net.Socket socket)
             throws java.sql.SQLException

getType

public int getType()

getData

public byte[] getData()

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

toHex

public static java.lang.String toHex(byte number)

toHex

public static java.lang.String toHex(int number)

dump

public static java.lang.String dump(byte[] data)

dump

public static java.lang.String dump(byte[] data,
                                    int length)

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs61

WebLogic classes and methods that do not appear in this reference are not public and are not supported.