public class

SharedFileInputStream

extends FilterInputStream
java.lang.Object
   ↳ java.io.InputStream
     ↳ java.io.FilterInputStream
       ↳ org.bouncycastle.mail.smime.util.SharedFileInputStream

Summary

[Expand]
Inherited Fields
From class java.io.FilterInputStream
Public Constructors
SharedFileInputStream(String fileName)
SharedFileInputStream(File file)
Public Methods
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(byte[] buf)
int read()
int read(byte[] buf, int off, int len)
void reset()
long skip(long n)
[Expand]
Inherited Methods
From class java.io.FilterInputStream
From class java.io.InputStream
From class java.lang.Object
From interface java.io.Closeable

Public Constructors

public SharedFileInputStream (String fileName)

Throws
IOException

public SharedFileInputStream (File file)

Throws
IOException

Public Methods

public void dispose ()

Close of this stream and any substreams that have been created from it.

Throws
IOException on problem closing the main stream.

public long getPosition ()

public SharedFileInputStream getRoot ()

Return the shared stream that represents the top most stream that this stream inherits from.

Returns
  • the base of the shared stream tree.

public void mark (int readLimit)

public boolean markSupported ()

public InputStream newStream (long start, long finish)

public int read (byte[] buf)

Throws
IOException

public int read ()

Throws
IOException

public int read (byte[] buf, int off, int len)

Throws
IOException

public void reset ()

Throws
IOException

public long skip (long n)

Throws
IOException