public class SharedFileInputStream
extends java.io.FilterInputStream
implements jakarta.mail.internet.SharedInputStream
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.IOException
public SharedFileInputStream(java.io.File file) throws java.io.IOException
java.io.IOException
public long getPosition()
getPosition
in interface jakarta.mail.internet.SharedInputStream
public java.io.InputStream newStream(long start, long finish)
newStream
in interface jakarta.mail.internet.SharedInputStream
public int read(byte[] buf) throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public int read(byte[] buf, int off, int len) throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public int read() throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public boolean markSupported()
markSupported
in class java.io.FilterInputStream
public long skip(long n) throws java.io.IOException
skip
in class java.io.FilterInputStream
java.io.IOException
public void mark(int readLimit)
mark
in class java.io.FilterInputStream
public void reset() throws java.io.IOException
reset
in class java.io.FilterInputStream
java.io.IOException
public SharedFileInputStream getRoot()
public void dispose() throws java.io.IOException
java.io.IOException
- on problem closing the main stream.