02/28/2005
 

com.epicentric.common
Class InputData

java.lang.Object
  |
  +--com.epicentric.common.InputData

Deprecated. As of version 4.5. To be removed in 8.0 or later. No externally facing replacement will be supported.

public class InputData
extends Object

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

DEBUG

public static boolean DEBUG
Deprecated. 

INITIAL_BUFFER_SIZE

public static final int INITIAL_BUFFER_SIZE
Deprecated. 

BUFFER_INCREMENT

public static final int BUFFER_INCREMENT
Deprecated. 

BUFFER_EXTRA_CAPACITY

public static final int BUFFER_EXTRA_CAPACITY
Deprecated. 
Constructor Detail

InputData

public InputData(byte[] data)
Deprecated. 
Method Detail

toString

public String toString()
Deprecated. Since 4.1 SP2, to be removed in 8.0 or later, no replacement - unsafe due to unspecified character encoding.

Get contents of InputData as a String.
Overrides:
toString in class Object

getData

public byte[] getData()
Deprecated. 

getLen

public int getLen()
Deprecated. 

getTimeStamp

public long getTimeStamp()
Deprecated. 

getMD5

public byte[] getMD5()
Deprecated. 

getMD5String

public String getMD5String()
Deprecated. 

getContents

public String getContents()
Deprecated. Since 4.1 SP2, to be removed in 8.0 or later, no replacement - unsafe due to unspecified character encoding.

Get contents of InputData as a String.

getString

public 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.

Get contents of InputData as a String.

getString

public 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.

Get contents of InputData as a String reading single byte at a time.

getInputData

public static InputData getInputData(InputStream input_stream)
Deprecated. 
Read all the bytes from an InputStream and return an InputData object containing the bytes. (single_byte_read defaults to false.)

getInputData

public 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.

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

See Also:
com.epicentric.sql.SQLConnection.readColumnBytes, com.epicentric.sql.SQLConnection.readColumnObject, SQLConnectionManager

readArraySingleByte

public static int readArraySingleByte(InputStream is,
                                      byte[] b,
                                      int off,
                                      int len)
                               throws IOException
Deprecated. 

02/28/2005
 

Copyright and Trademark Notices