org.bouncycastle.mail.smime.util

Class SharedFileInputStream

Implemented Interfaces:
SharedInputStream

public class SharedFileInputStream
extends FilterInputStream
implements SharedInputStream

Constructor Summary

SharedFileInputStream(File file)
SharedFileInputStream(String fileName)

Method Summary

void
dispose()
Close of this stream and any substreams that have been created from it.
long
getPosition()
void
mark(int readLimit)
InputStream
newStream(long start, long finish)
int
read()
int
read(byte[] buf)
int
read(byte[] buf, int off, int len)
void
reset()

Constructor Details

SharedFileInputStream

public SharedFileInputStream(File file)
            throws IOException

SharedFileInputStream

public SharedFileInputStream(String fileName)
            throws IOException

Method Details

dispose

public void dispose()
            throws IOException
Close of this stream and any substreams that have been created from it.

getPosition

public long getPosition()

mark

public void mark(int readLimit)

newStream

public InputStream newStream(long start,
                             long finish)

read

public int read()
            throws IOException

read

public int read(byte[] buf)
            throws IOException

read

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

reset

public void reset()
            throws IOException