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