public class SharedFileInputStream extends FilterInputStream implements javax.mail.internet.SharedInputStream
in
Constructor and Description |
---|
SharedFileInputStream(File file) |
SharedFileInputStream(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() |
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) |
available, close
public SharedFileInputStream(String fileName) throws IOException
IOException
public SharedFileInputStream(File file) throws IOException
IOException
public long getPosition()
getPosition
in interface javax.mail.internet.SharedInputStream
public InputStream newStream(long start, long finish)
newStream
in interface javax.mail.internet.SharedInputStream
public int read(byte[] buf) throws IOException
read
in class FilterInputStream
IOException
public int read(byte[] buf, int off, int len) throws IOException
read
in class FilterInputStream
IOException
public int read() throws IOException
read
in class FilterInputStream
IOException
public boolean markSupported()
markSupported
in class FilterInputStream
public long skip(long n) throws IOException
skip
in class FilterInputStream
IOException
public void mark(int readLimit)
mark
in class FilterInputStream
public void reset() throws IOException
reset
in class FilterInputStream
IOException
public SharedFileInputStream getRoot()
public void dispose() throws IOException
IOException
- on problem closing the main stream.Copyright © 2015. All rights reserved.