com.sshtools.j2ssh.io
Class ByteArrayReader
java.lang.Object
java.io.InputStream
java.io.ByteArrayInputStream
com.sshtools.j2ssh.io.ByteArrayReader
- All Implemented Interfaces:
- java.io.Closeable
public class ByteArrayReader
- extends java.io.ByteArrayInputStream
- Version:
- $Revision: 1.16 $
- Author:
- $author$
Fields inherited from class java.io.ByteArrayInputStream |
buf, count, mark, pos |
Constructor Summary |
ByteArrayReader(byte[] data)
Creates a new ByteArrayReader object. |
Methods inherited from class java.io.ByteArrayInputStream |
available, close, mark, markSupported, read, read, reset, skip |
Methods inherited from class java.io.InputStream |
read |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ByteArrayReader
public ByteArrayReader(byte[] data)
- Creates a new ByteArrayReader object.
- Parameters:
data
-
readInt
public static long readInt(byte[] data,
int start)
- Parameters:
data
- start
-
- Returns:
readInt
public long readInt()
throws java.io.IOException
- Returns:
-
- Throws:
java.io.IOException
readUINT32
public UnsignedInteger32 readUINT32()
throws java.io.IOException
- Returns:
-
- Throws:
java.io.IOException
readUINT64
public UnsignedInteger64 readUINT64()
throws java.io.IOException
- Returns:
-
- Throws:
java.io.IOException
readString
public static java.lang.String readString(byte[] data,
int start)
- Parameters:
data
- start
-
- Returns:
readBigInteger
public java.math.BigInteger readBigInteger()
throws java.io.IOException
- Returns:
-
- Throws:
java.io.IOException
readBinaryString
public byte[] readBinaryString()
throws java.io.IOException
- Returns:
-
- Throws:
java.io.IOException
readString
public java.lang.String readString()
throws java.io.IOException
- Returns:
-
- Throws:
java.io.IOException
Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.