Package org.bouncycastle.mail.smime.util
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 java.io.FilterInputStream
in
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Close of this stream and any substreams that have been created from it.long
getRoot()
Return the shared stream that represents the top most stream that this stream inherits from.void
mark
(int readLimit) boolean
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) Methods inherited from class java.io.FilterInputStream
available, close
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
SharedFileInputStream
- Throws:
IOException
-
SharedFileInputStream
- Throws:
IOException
-
-
Method Details
-
getPosition
public long getPosition()- Specified by:
getPosition
in interfacejavax.mail.internet.SharedInputStream
-
newStream
- Specified by:
newStream
in interfacejavax.mail.internet.SharedInputStream
-
read
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupported
in classFilterInputStream
-
skip
- Overrides:
skip
in classFilterInputStream
- Throws:
IOException
-
mark
public void mark(int readLimit) - Overrides:
mark
in classFilterInputStream
-
reset
- Overrides:
reset
in 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.
-