org.eclipse.mat.parser.io
Class BufferedRandomAccessInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.eclipse.mat.parser.io.BufferedRandomAccessInputStream
All Implemented Interfaces:
Closeable

public class BufferedRandomAccessInputStream
extends InputStream


Constructor Summary
BufferedRandomAccessInputStream(RandomAccessFile in)
           
BufferedRandomAccessInputStream(RandomAccessFile in, int bufsize)
           
 
Method Summary
 void close()
           
 long getFilePointer()
           
 boolean markSupported()
           
 int read()
           
 int read(byte[] b, int off, int len)
           
 void seek(long pos)
           
 
Methods inherited from class java.io.InputStream
available, mark, read, reset, skip
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BufferedRandomAccessInputStream

public BufferedRandomAccessInputStream(RandomAccessFile in)
                                throws IOException
Throws:
IOException

BufferedRandomAccessInputStream

public BufferedRandomAccessInputStream(RandomAccessFile in,
                                       int bufsize)
                                throws IOException
Throws:
IOException
Method Detail

read

public final int read()
               throws IOException
Specified by:
read in class InputStream
Throws:
IOException

read

public int read(byte[] b,
                int off,
                int len)
         throws IOException
Overrides:
read in class InputStream
Throws:
IOException

markSupported

public boolean markSupported()
Overrides:
markSupported in class InputStream

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class InputStream
Throws:
IOException

seek

public void seek(long pos)
          throws IOException
Throws:
IOException

getFilePointer

public long getFilePointer()