Class HsqlByteArrayInputStream
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 TypeMethodDescriptionintvoidclose()final longgetPos()voidmark(int readAheadLimit) booleanintread()intread(byte[] b, int off, int len) booleanbytereadByte()charreadChar()final doublefinal floatvoidreadFully(byte[] b) final voidreadFully(byte[] b, int off, int len) intreadInt()readLine()longreadLong()shortfinal intfinal intreadUTF()voidreset()longskip(long n) intskipBytes(int n) Methods inherited from class 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:
readFullyin interfaceDataInput- Throws:
IOException
-
readFully
- Specified by:
readFullyin interfaceDataInput- Throws:
IOException
-
readBoolean
- Specified by:
readBooleanin interfaceDataInput- Throws:
IOException
-
readByte
- Specified by:
readBytein interfaceDataInput- Throws:
IOException
-
readUnsignedByte
- Specified by:
readUnsignedBytein interfaceDataInput- Throws:
IOException
-
readShort
- Specified by:
readShortin interfaceDataInput- Throws:
IOException
-
readUnsignedShort
- Specified by:
readUnsignedShortin interfaceDataInput- Throws:
IOException
-
readChar
- Specified by:
readCharin interfaceDataInput- Throws:
IOException
-
readInt
- Specified by:
readIntin interfaceDataInput- Throws:
IOException
-
readLong
- Specified by:
readLongin interfaceDataInput- Throws:
IOException
-
readFloat
- Specified by:
readFloatin interfaceDataInput- Throws:
IOException
-
readDouble
- Specified by:
readDoublein interfaceDataInput- Throws:
IOException
-
skipBytes
-
readLine
-
readUTF
- Specified by:
readUTFin interfaceDataInput- Throws:
IOException
-
read
public int read()- Specified by:
readin classInputStream
-
read
public int read(byte[] b, int off, int len) - Overrides:
readin classInputStream
-
skip
public long skip(long n) - Overrides:
skipin classInputStream
-
available
public int available()- Overrides:
availablein classInputStream
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classInputStream
-
mark
public void mark(int readAheadLimit) - Overrides:
markin classInputStream
-
reset
public void reset()- Overrides:
resetin classInputStream
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream
-