public final class RandomAccessStream extends InputStream
| Constructor and Description | 
|---|
| RandomAccessStream(InputStream inputstream)Constructs a RandomAccessStream from an InputStream. | 
| RandomAccessStream(RandomAccessFile ras)Constructs a RandomAccessStream from an RandomAccessFile. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close() | 
| int | getFilePointer() | 
| long | getLongFilePointer() | 
| int | read() | 
| int | read(byte[] bytes,
    int off,
    int len) | 
| double | readDouble() | 
| float | readFloat() | 
| void | readFully(byte[] bytes) | 
| void | readFully(byte[] bytes,
         int len) | 
| int | readInt() | 
| long | readLong() | 
| short | readShort() | 
| void | seek(int loc) | 
| void | seek(long loc) | 
available, mark, markSupported, read, reset, skippublic RandomAccessStream(InputStream inputstream)
public RandomAccessStream(RandomAccessFile ras)
public int getFilePointer()
                   throws IOException
IOExceptionpublic long getLongFilePointer()
                        throws IOException
IOExceptionpublic int read()
         throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] bytes,
       int off,
       int len)
         throws IOException
read in class InputStreamIOExceptionpublic final void readFully(byte[] bytes)
                     throws IOException
IOExceptionpublic final void readFully(byte[] bytes,
             int len)
                     throws IOException
IOExceptionpublic void seek(long loc)
          throws IOException
IOExceptionpublic void seek(int loc)
          throws IOException
IOExceptionpublic final int readInt()
                  throws IOException
IOExceptionpublic final long readLong()
                    throws IOException
IOExceptionpublic final double readDouble()
                        throws IOException
IOExceptionpublic final short readShort()
                      throws IOException
IOExceptionpublic final float readFloat()
                      throws IOException
IOExceptionpublic void close()
           throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionCopyright © 2015. All Rights Reserved.