public class IfxDataInputStream
extends java.io.FilterInputStream
| Constructor and Description |
|---|
IfxDataInputStream(java.io.InputStream i) |
IfxDataInputStream(java.io.InputStream i,
boolean encoption) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clearTrace() |
void |
closeStream() |
java.lang.String |
getClientLocale()
Return the class variable ClientLocale.
|
int |
read()
reads a byte from the inputstream.
|
int |
read(byte[] b)
reads into an array of bytes.
|
int |
read(byte[] b,
int offset,
int length)
reads into an array of bytes.
|
byte |
readByte() |
java.lang.String |
readChar()
Reads an informix string from the inputstream.
|
java.lang.String |
readChar(java.lang.String dbEnc) |
java.sql.Date |
readDate()
Reads an Informix date from the stream.
|
java.sql.Timestamp |
readDateTime(short prec)
Reads an Informix datetime from the stream.
|
java.math.BigDecimal |
readDecimal(short prec)
Reads an Informix decimal from the stream.
|
double |
readDouble(short prec)
Reads an Informix double from the stream.
|
int |
readFully(byte[] b)
reads into an array of bytes.
|
int |
readFully(byte[] b,
int offset,
int length)
reads into an array of bytes.
|
int |
readInt()
Reads an informix Integer from the inputstream.
|
Interval |
readInterval(short prec)
Reads an Informix interval from the stream.
|
long |
readLong()
Reads an Informix int8 from the stream.
|
long |
readLongBigint()
Reads an Informix bigint from the stream.
|
long |
readLongInt()
Reads an Informix int8 from the stream.
|
int |
readPadded(byte[] b)
reads into an array of bytes.
|
int |
readPadded(byte[] b,
int offset,
int length)
reads into an array of bytes.
|
byte[] |
readRawDateTime(short prec)
Reads an Informix datetime from the stream.
|
float |
readReal(short prec)
Reads an Informix real from the stream.
|
short |
readShort()
Reads an Informix smallint from the stream.
|
short |
readSmallInt()
Reads an Informix smallint from the stream.
|
void |
setClientLocale(java.lang.String loc)
Set the class variable ClientLocale.
|
int |
skipBytes(int n)
Skips exactly
n bytes of input in the underlying
input stream. |
public IfxDataInputStream(java.io.InputStream i)
public IfxDataInputStream(java.io.InputStream i,
boolean encoption)
public int read()
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOException - In case of I/O error.public int read(byte[] b)
throws java.io.IOException
read in class java.io.FilterInputStreamb - byte array to read into.java.io.IOException - In case of I/O error.public byte readByte()
throws java.io.IOException
java.io.IOExceptionpublic int readFully(byte[] b)
throws java.io.IOException
b - byte array to read into.java.io.IOException - In case of I/O error.public int read(byte[] b,
int offset,
int length)
throws java.io.IOException
read in class java.io.FilterInputStreamb - byte array to read into.offset - the offset of the data.length - the maximum number of bytes to read.java.io.IOException - In case of I/O error.public int readFully(byte[] b,
int offset,
int length)
throws java.io.IOException
b - byte array to read into.offset - the offset of the data.length - the maximum number of bytes to read.java.io.IOException - In case of I/O error.public int readPadded(byte[] b,
int offset,
int length)
throws java.io.IOException
b - byte array to read into.offset - the offset of the data.length - the maximum number of bytes to read.java.io.IOException - In case of I/O error.public int readPadded(byte[] b)
throws java.io.IOException
b - byte array to read into.offset - the offset of the data.length - the maximum number of bytes to read.java.io.IOException - In case of I/O error.public int skipBytes(int n)
throws java.io.IOException
n bytes of input in the underlying
input stream. This method blocks until all the bytes are skipped,
the end of the stream is detected, or an exception is thrown.n - the number of bytes to be skipped.n.java.io.EOFException - if this input stream reaches the end before
skipping all the bytes.java.io.IOException - if an I/O error occurs.public int readInt()
throws java.io.IOException
java.io.IOException - In case of I/O error.public java.lang.String readChar()
throws java.io.IOException,
IfxASFException
java.io.IOException - In case of I/O error.IfxJamException - In case the length of the data is < 0.IfxASFExceptionpublic java.lang.String readChar(java.lang.String dbEnc)
throws java.io.IOException,
IfxASFException
java.io.IOExceptionIfxASFExceptionpublic java.sql.Date readDate()
throws java.io.IOException,
IfxASFException
java.io.IOException - In case of I/O error.IfxASFException - In case the length of the data is < 0.public java.sql.Timestamp readDateTime(short prec)
throws java.io.IOException,
IfxASFException
java.io.IOException - In case of I/O error.IfxASFException - In case the length of the data is < 0.public byte[] readRawDateTime(short prec)
throws java.io.IOException,
IfxASFException
java.io.IOException - In case of I/O error.IfxASFException - In case the length of the data is < 0.public Interval readInterval(short prec) throws java.io.IOException, IfxASFException
java.io.IOException - In case of I/O error.IfxASFException - In case the length of the data is < 0.public java.math.BigDecimal readDecimal(short prec)
throws java.io.IOException,
IfxASFException
java.io.IOException - In case of I/O error.IfxASFException - In case the length of the data is < 0.public double readDouble(short prec)
throws java.io.IOException,
IfxASFException
java.io.IOException - In case of I/O error.IfxASFException - In case the length of the data is < 0.public float readReal(short prec)
throws java.io.IOException,
IfxASFException
java.io.IOException - In case of I/O error.IfxASFException - In case the length of the data is < 0.public short readSmallInt()
throws java.io.IOException
java.io.IOException - In case of I/O error.public short readShort()
throws java.io.IOException
java.io.IOException - In case of I/O error.public long readLongInt()
throws java.io.IOException
java.io.IOException - In case of I/O error.public long readLong()
throws java.io.IOException
java.io.IOException - In case of I/O error.public void setClientLocale(java.lang.String loc)
loc - public java.lang.String getClientLocale()
loc - public long readLongBigint()
throws java.io.IOException
java.io.IOException - In case of I/O error.public void closeStream()
protected void clearTrace()