public class RandomAccessFileInputStream extends InputStream
| Constructor and Description |
|---|
RandomAccessFileInputStream(File file)
Instantiates a new tiff file input stream.
|
RandomAccessFileInputStream(RandomAccessFile raf) |
RandomAccessFileInputStream(RandomAccessFile raf,
String path) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
String |
getPath() |
void |
limit(long limit)
Set Limit.
|
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
void |
seek(long pos)
Seek.
|
long |
size()
Size.
|
mark, markSupported, skippublic RandomAccessFileInputStream(File file) throws FileNotFoundException
file - the fileFileNotFoundException - the file not found exceptionpublic RandomAccessFileInputStream(RandomAccessFile raf) throws FileNotFoundException
FileNotFoundExceptionpublic RandomAccessFileInputStream(RandomAccessFile raf, String path) throws FileNotFoundException
FileNotFoundExceptionpublic String getPath()
public int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic void reset()
throws IOException
reset in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic void seek(long pos)
throws IOException
pos - the posIOException - Signals that an I/O exception has occurred.public void limit(long limit)
limit - the limitpublic long size()
Copyright © 2015–2020. All rights reserved.