Class SharedFileInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.bouncycastle.mail.smime.util.SharedFileInputStream
- All Implemented Interfaces:
Closeable, AutoCloseable, javax.mail.internet.SharedInputStream
public class SharedFileInputStream
extends FilterInputStream
implements javax.mail.internet.SharedInputStream
-
Field Summary
Fields inherited from class FilterInputStream
in -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Close of this stream and any substreams that have been created from it.longgetRoot()Return the shared stream that represents the top most stream that this stream inherits from.voidmark(int readLimit) booleannewStream(long start, long finish) intread()intread(byte[] buf) intread(byte[] buf, int off, int len) voidreset()longskip(long n) Methods inherited from class FilterInputStream
available, closeMethods inherited from class InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
SharedFileInputStream
- Throws:
IOException
-
SharedFileInputStream
- Throws:
IOException
-
-
Method Details
-
getPosition
public long getPosition()- Specified by:
getPositionin interfacejavax.mail.internet.SharedInputStream
-
newStream
- Specified by:
newStreamin interfacejavax.mail.internet.SharedInputStream
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classFilterInputStream
-
skip
- Overrides:
skipin classFilterInputStream- Throws:
IOException
-
mark
public void mark(int readLimit) - Overrides:
markin classFilterInputStream
-
reset
- Overrides:
resetin classFilterInputStream- Throws:
IOException
-
getRoot
Return the shared stream that represents the top most stream that this stream inherits from.- Returns:
- the base of the shared stream tree.
-
dispose
Close of this stream and any substreams that have been created from it.- Throws:
IOException- on problem closing the main stream.
-