|
02/28/2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.epicentric.common.InputData
Utility methods providing access to a single InputStream or byte array. This class contains operations for transforming an InputStream into various formats.
| Field Summary | |
static int |
BUFFER_EXTRA_CAPACITY
Deprecated. |
static int |
BUFFER_INCREMENT
Deprecated. |
static boolean |
DEBUG
Deprecated. |
static int |
INITIAL_BUFFER_SIZE
Deprecated. |
| Constructor Summary | |
InputData(byte[] data)
Deprecated. |
|
| Method Summary | |
String |
getContents()
Deprecated. Since 4.1 SP2, to be removed in 8.0 or later, no replacement - unsafe due to unspecified character encoding. |
byte[] |
getData()
Deprecated. |
static InputData |
getInputData(InputStream input_stream)
Deprecated. Read all the bytes from an InputStream and return an InputData object containing the bytes. |
static InputData |
getInputData(InputStream input_stream,
boolean single_byte_read)
Deprecated. Read all the bytes from an InputStream and return an InputData object containing the bytes. |
int |
getLen()
Deprecated. |
byte[] |
getMD5()
Deprecated. |
String |
getMD5String()
Deprecated. |
static String |
getString(InputStream input_stream)
Deprecated. Since 4.1 SP2, to be removed in 8.0 or later, no replacement - unsafe due to unspecified character encoding. |
static String |
getString(InputStream input_stream,
boolean single_byte_read)
Deprecated. Since 4.1 SP2, to be removed in 8.0 or later, no replacement - unsafe due to unspecified character encoding. |
long |
getTimeStamp()
Deprecated. |
static int |
readArraySingleByte(InputStream is,
byte[] b,
int off,
int len)
Deprecated. |
String |
toString()
Deprecated. Since 4.1 SP2, to be removed in 8.0 or later, no replacement - unsafe due to unspecified character encoding. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static boolean DEBUG
public static final int INITIAL_BUFFER_SIZE
public static final int BUFFER_INCREMENT
public static final int BUFFER_EXTRA_CAPACITY
| Constructor Detail |
public InputData(byte[] data)
| Method Detail |
public String toString()
toString in class Objectpublic byte[] getData()
public int getLen()
public long getTimeStamp()
public byte[] getMD5()
public String getMD5String()
public String getContents()
public static String getString(InputStream input_stream)
public static String getString(InputStream input_stream,
boolean single_byte_read)
public static InputData getInputData(InputStream input_stream)
public static InputData getInputData(InputStream input_stream,
boolean single_byte_read)
Note: for reading BLOB's from a database, it's better to use the methods in SQLConnection since they automatically set the proper value for single_byte_read. (Must be off for DB2, on for Access.)
com.epicentric.sql.SQLConnection.readColumnBytes,
com.epicentric.sql.SQLConnection.readColumnObject,
SQLConnectionManager
public static int readArraySingleByte(InputStream is,
byte[] b,
int off,
int len)
throws IOException
|
02/28/2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||