org.bouncycastle.mail.smime.util
public class SharedFileInputStream extends FilterInputStream implements SharedInputStream
Constructor Summary | |
---|---|
SharedFileInputStream(String fileName) | |
SharedFileInputStream(File file) |
Method Summary | |
---|---|
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() |
InputStream | newStream(long start, long finish) |
int | read(byte[] buf) |
int | read(byte[] buf, int off, int len) |
int | read() |
void | reset() |
long | skip(long n) |
Throws: IOException on problem closing the main stream.
Returns: the base of the shared stream tree.