java.lang.Object
java.io.InputStream
org.hsqldb.lib.HsqlByteArrayInputStream
- All Implemented Interfaces:
Closeable
,DataInput
,AutoCloseable
This class is a replacement for both java.io.ByteArrayInputStream
(without synchronization) and java.io.DataInputStream
- Since:
- 1.7.2
- Author:
- Fred Toussi (fredt@users dot sourceforge.net)
-
Constructor Summary
ConstructorsConstructorDescriptionHsqlByteArrayInputStream
(byte[] buf) HsqlByteArrayInputStream
(byte[] buf, int offset, int length) -
Method Summary
Modifier and TypeMethodDescriptionint
void
close()
final long
getPos()
void
mark
(int readAheadLimit) boolean
int
read()
int
read
(byte[] b, int off, int len) boolean
byte
readByte()
char
readChar()
final double
final float
void
readFully
(byte[] b) final void
readFully
(byte[] b, int off, int len) int
readInt()
readLine()
long
readLong()
short
final int
final int
readUTF()
void
reset()
long
skip
(long n) int
skipBytes
(int n) Methods inherited from class java.io.InputStream
nullInputStream, read, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
HsqlByteArrayInputStream
public HsqlByteArrayInputStream(byte[] buf) -
HsqlByteArrayInputStream
public HsqlByteArrayInputStream(byte[] buf, int offset, int length)
-
-
Method Details
-
getPos
public final long getPos() -
readFully
- Specified by:
readFully
in interfaceDataInput
- Throws:
IOException
-
readFully
- Specified by:
readFully
in interfaceDataInput
- Throws:
IOException
-
readBoolean
- Specified by:
readBoolean
in interfaceDataInput
- Throws:
IOException
-
readByte
- Specified by:
readByte
in interfaceDataInput
- Throws:
IOException
-
readUnsignedByte
- Specified by:
readUnsignedByte
in interfaceDataInput
- Throws:
IOException
-
readShort
- Specified by:
readShort
in interfaceDataInput
- Throws:
IOException
-
readUnsignedShort
- Specified by:
readUnsignedShort
in interfaceDataInput
- Throws:
IOException
-
readChar
- Specified by:
readChar
in interfaceDataInput
- Throws:
IOException
-
readInt
- Specified by:
readInt
in interfaceDataInput
- Throws:
IOException
-
readLong
- Specified by:
readLong
in interfaceDataInput
- Throws:
IOException
-
readFloat
- Specified by:
readFloat
in interfaceDataInput
- Throws:
IOException
-
readDouble
- Specified by:
readDouble
in interfaceDataInput
- Throws:
IOException
-
skipBytes
public int skipBytes(int n) -
readLine
-
readUTF
- Specified by:
readUTF
in interfaceDataInput
- Throws:
IOException
-
read
public int read()- Specified by:
read
in classInputStream
-
read
public int read(byte[] b, int off, int len) - Overrides:
read
in classInputStream
-
skip
public long skip(long n) - Overrides:
skip
in classInputStream
-
available
public int available()- Overrides:
available
in classInputStream
-
markSupported
public boolean markSupported()- Overrides:
markSupported
in classInputStream
-
mark
public void mark(int readAheadLimit) - Overrides:
mark
in classInputStream
-
reset
public void reset()- Overrides:
reset
in classInputStream
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
-