Package com.sshtools.j2ssh.io
Class ByteArrayReader
java.lang.Object
java.io.InputStream
java.io.ByteArrayInputStream
com.sshtools.j2ssh.io.ByteArrayReader
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Version:
- $Revision: 1.16 $
- Author:
- $author$
-
Field Summary
Fields inherited from class java.io.ByteArrayInputStream
buf, count, mark, pos
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
long
readInt()
static long
readInt
(byte[] data, int start) static String
readString
(byte[] data, int start) Methods inherited from class java.io.ByteArrayInputStream
available, close, mark, markSupported, read, read, readAllBytes, readNBytes, reset, skip, transferTo
Methods inherited from class java.io.InputStream
nullInputStream, read, readNBytes, skipNBytes
-
Constructor Details
-
ByteArrayReader
public ByteArrayReader(byte[] data) Creates a new ByteArrayReader object.- Parameters:
data
-
-
-
Method Details
-
readInt
public static long readInt(byte[] data, int start) - Parameters:
data
-start
-- Returns:
-
readInt
- Returns:
- Throws:
IOException
-
readUINT32
- Returns:
- Throws:
IOException
-
readUINT64
- Returns:
- Throws:
IOException
-
readString
- Parameters:
data
-start
-- Returns:
-
readBigInteger
- Returns:
- Throws:
IOException
-
readBinaryString
- Returns:
- Throws:
IOException
-
readString
- Returns:
- Throws:
IOException
-