Package com.intellij.util.io
Class RandomAccessFileInputStream
- java.lang.Object
-
- java.io.InputStream
-
- com.intellij.util.io.RandomAccessFileInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class RandomAccessFileInputStream extends InputStream
-
-
Constructor Summary
Constructors Constructor Description RandomAccessFileInputStream(RandomAccessFile raf, long pos)RandomAccessFileInputStream(RandomAccessFile raf, long pos, long limit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()voidclose()intread()intread(byte[] b, int offset, int length)voidsetup(long pos, long limit)longskip(long amountToSkip)-
Methods inherited from class java.io.InputStream
mark, markSupported, read, reset
-
-
-
-
Constructor Detail
-
RandomAccessFileInputStream
public RandomAccessFileInputStream(RandomAccessFile raf, long pos, long limit)
-
RandomAccessFileInputStream
public RandomAccessFileInputStream(RandomAccessFile raf, long pos) throws IOException
- Throws:
IOException
-
-
Method Detail
-
setup
public void setup(long pos, long limit)
-
available
public int available()
- Overrides:
availablein classInputStream
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream
-
read
public int read() throws IOException- Specified by:
readin classInputStream- Throws:
IOException
-
read
public int read(byte[] b, int offset, int length) throws IOException- Overrides:
readin classInputStream- Throws:
IOException
-
skip
public long skip(long amountToSkip)
- Overrides:
skipin classInputStream
-
-