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:
jakarta.mail.internet.SharedInputStream,Closeable,AutoCloseable
public class SharedFileInputStream
extends FilterInputStream
implements jakarta.mail.internet.SharedInputStream
-
Field Summary
Fields inherited from class java.io.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 java.io.FilterInputStream
available, closeMethods 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:
getPositionin interfacejakarta.mail.internet.SharedInputStream
-
newStream
- Specified by:
newStreamin interfacejakarta.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.
-