|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.event.CSDataSender
public class CSDataSender
The CSDataSender class encapsulates the sending or retrieving of data. This class originated from com.ibm.dse.cs.servlet.CSDataSender and some of its method is refered by com.ibm.btt.event.CSNotifCLToSrvProtocolServlet.
Field Summary | |
---|---|
protected java.lang.String |
charEncoding
Character encoding used in the HTTP message body sent in C/S requests. |
static java.lang.String |
COPYRIGHT
|
(package private) java.util.Hashtable |
myDict
|
Constructor Summary | |
---|---|
CSDataSender()
|
Method Summary | |
---|---|
void |
beginReceive(java.io.DataInputStream in,
int size)
Initializes receiving data. |
void |
beginReceive(java.io.DataInputStream in,
int size,
java.lang.String charEncod)
Initializes receiving data. |
void |
beginSend(java.io.DataOutputStream out,
int number)
Initializes sending data. |
void |
endReceive()
Finalizes receiving data. |
void |
endSend()
Finalizes sending data. |
byte[] |
getBytes(java.lang.String aString,
java.lang.String charEncod)
Convert this String into bytes according to the char encoding. |
byte[] |
getBytesUTF8(java.lang.String aString)
Convert this String into bytes according to the UTF8 encoding. |
java.lang.String |
getCharEncoding()
Obtains the charEncoding attribute. |
byte[] |
receiveBytes(java.lang.String name)
Enables receiving bytes. |
java.lang.Integer |
receiveInteger(java.lang.String name)
Receives integers. |
java.lang.Long |
receiveLong(java.lang.String name)
Receives Longs. |
java.lang.String |
receiveString(java.lang.String name)
Receives Strings. |
void |
sendBytes(byte[] name,
byte[] data)
Sends bytes. |
void |
sendInteger(byte[] name,
java.lang.Integer data)
Sends integers. |
void |
sendInteger(byte[] name,
java.lang.Integer data,
java.lang.String charEncod)
Sends integers. |
void |
sendLong(byte[] name,
java.lang.Long data)
Sends Longs. |
void |
sendLong(byte[] name,
java.lang.Long data,
java.lang.String charEncod)
Sends Longs. |
void |
sendString(byte[] name,
byte[] data)
Sends Strings. |
void |
sendString(byte[] name,
byte[] data,
java.lang.String charEncod)
Sends Strings. |
void |
setCharEncoding(java.lang.String c)
Sets the charEncoding attribute. |
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 COPYRIGHT
protected java.lang.String charEncoding
java.util.Hashtable myDict
Constructor Detail |
---|
public CSDataSender()
Method Detail |
---|
public void beginReceive(java.io.DataInputStream in, int size) throws java.lang.Exception
in
- java.io.DataInputStreamsize
- int
java.lang.Exception
public void beginReceive(java.io.DataInputStream in, int size, java.lang.String charEncod) throws java.lang.Exception
in
- java.io.DataInputStreamsize
- intcharEncod
- String
java.lang.Exception
public void beginSend(java.io.DataOutputStream out, int number) throws java.io.IOException
out
- java.io.DataOutputStreamnumber
- int
java.io.IOException
public void endReceive() throws java.io.IOException
java.io.IOException
public void endSend() throws java.io.IOException
java.io.IOException
public byte[] getBytesUTF8(java.lang.String aString) throws java.lang.Exception
aString
- String
java.lang.Exception
public byte[] receiveBytes(java.lang.String name) throws java.io.IOException
name
- String
java.io.IOException
public java.lang.Integer receiveInteger(java.lang.String name) throws java.io.IOException
name
- String
java.io.IOException
public java.lang.Long receiveLong(java.lang.String name) throws java.io.IOException
name
- String
java.io.IOException
public java.lang.String receiveString(java.lang.String name) throws java.io.IOException
name
- String
java.io.IOException
public void sendBytes(byte[] name, byte[] data) throws java.lang.Exception
name
- byte[]data
- byte[]
java.lang.Exception
public void sendInteger(byte[] name, java.lang.Integer data) throws java.lang.Exception
name
- byte[]data
- Integer
java.lang.Exception
public void sendLong(byte[] name, java.lang.Long data) throws java.lang.Exception
name
- byte[]data
- Long
java.lang.Exception
public void sendString(byte[] name, byte[] data) throws java.lang.Exception
name
- byte[]data
- byte[]
java.lang.Exception
public java.lang.String getCharEncoding()
public void setCharEncoding(java.lang.String c)
c
- Stringpublic byte[] getBytes(java.lang.String aString, java.lang.String charEncod) throws java.lang.Exception
aString
- StringcharEncod
- String
java.lang.Exception
public void sendString(byte[] name, byte[] data, java.lang.String charEncod) throws java.lang.Exception
name
- byte[]data
- byte[]charEncod
- String
java.lang.Exception
public void sendLong(byte[] name, java.lang.Long data, java.lang.String charEncod) throws java.lang.Exception
name
- byte[]data
- LongcharEncod
- String
java.lang.Exception
public void sendInteger(byte[] name, java.lang.Integer data, java.lang.String charEncod) throws java.lang.Exception
name
- byte[]data
- IntegercharEncod
- String
java.lang.Exception
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |