Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.sshtools.j2ssh.io
Class ByteArrayReader

    java.lang.Object
      java.io.InputStream
          java.io.ByteArrayInputStream
              com.sshtools.j2ssh.io.ByteArrayReader

public class ByteArrayReader
extends java.io.ByteArrayInputStream

DOCUMENT ME!

Field Summary

Fields inherited from class java.io.ByteArrayInputStream
`buf, count, mark, pos`

Constructor Summary
`ByteArrayReader(byte[] data)` Creates a new ByteArrayReader object.

Method Summary
`java.math.BigInteger` | `readBigInteger()` DOCUMENT ME!
`byte[]` | `readBinaryString()` DOCUMENT ME!
`long` | `readInt()` DOCUMENT ME!
`static long` | `readInt(byte[] data, int start)` DOCUMENT ME!
`java.lang.String` | `readString()` DOCUMENT ME!
`static java.lang.String` | `readString(byte[] data, int start)` DOCUMENT ME!
`UnsignedInteger32` | `readUINT32()` DOCUMENT ME!
`UnsignedInteger64` | `readUINT64()` DOCUMENT ME!

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`

Constructor Detail

### ByteArrayReader

    public ByteArrayReader(byte[] data)

  Creates a new ByteArrayReader object.

Parameters:
  `data` - DOCUMENT ME!

Method Detail

### readInt

    public static long readInt(byte[] data,
                               int start)

  DOCUMENT ME!

  Parameters:
    `data` - DOCUMENT ME!
    `start` - DOCUMENT ME!
  Returns:
    DOCUMENT ME!

### readInt

    public long readInt()
                 throws java.io.IOException

  DOCUMENT ME!

  Returns:
    DOCUMENT ME!
  Throws:
    `java.io.IOException` - DOCUMENT ME!

### readUINT32

    public UnsignedInteger32 readUINT32()
                                 throws java.io.IOException

  DOCUMENT ME!

  Returns:
    DOCUMENT ME!
  Throws:
    `java.io.IOException` - DOCUMENT ME!

### readUINT64

    public UnsignedInteger64 readUINT64()
                                 throws java.io.IOException

  DOCUMENT ME!

  Returns:
    DOCUMENT ME!
  Throws:
    `java.io.IOException` - DOCUMENT ME!

### readString

    public static java.lang.String readString(byte[] data,
                                              int start)

  DOCUMENT ME!

  Parameters:
    `data` - DOCUMENT ME!
    `start` - DOCUMENT ME!
  Returns:
    DOCUMENT ME!

### readBigInteger

    public java.math.BigInteger readBigInteger()
                                        throws java.io.IOException

  DOCUMENT ME!

  Returns:
    DOCUMENT ME!
  Throws:
    `java.io.IOException` - DOCUMENT ME!

### readBinaryString

    public byte[] readBinaryString()
                            throws java.io.IOException

  DOCUMENT ME!

  Returns:
    DOCUMENT ME!
  Throws:
    `java.io.IOException` - DOCUMENT ME!

### readString

    public java.lang.String readString()
                                throws java.io.IOException

  DOCUMENT ME!

  Returns:
    DOCUMENT ME!
  Throws:
    `java.io.IOException` - DOCUMENT ME!

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD