public class SharedFileInputStream
extends java.io.FilterInputStream
| Constructor and Description |
|---|
SharedFileInputStream(java.io.File file) |
SharedFileInputStream(java.lang.String fileName) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Close of this stream and any substreams that have been created from it.
|
long |
getPosition() |
SharedFileInputStream |
getRoot()
Return the shared stream that represents the top most stream that
this stream inherits from.
|
void |
mark(int readLimit) |
boolean |
markSupported() |
java.io.InputStream |
newStream(long start,
long finish) |
int |
read() |
int |
read(byte[] buf) |
int |
read(byte[] buf,
int off,
int len) |
void |
reset() |
long |
skip(long n) |
public SharedFileInputStream(java.lang.String fileName)
throws java.io.IOException
java.io.IOExceptionpublic SharedFileInputStream(java.io.File file)
throws java.io.IOException
java.io.IOExceptionpublic long getPosition()
public java.io.InputStream newStream(long start,
long finish)
public int read(byte[] buf)
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic int read(byte[] buf,
int off,
int len)
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic int read()
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic boolean markSupported()
markSupported in class java.io.FilterInputStreampublic long skip(long n)
throws java.io.IOException
skip in class java.io.FilterInputStreamjava.io.IOExceptionpublic void mark(int readLimit)
mark in class java.io.FilterInputStreampublic void reset()
throws java.io.IOException
reset in class java.io.FilterInputStreamjava.io.IOExceptionpublic SharedFileInputStream getRoot()
public void dispose()
throws java.io.IOException
java.io.IOException - on problem closing the main stream.