org.bouncycastle.mail.smime.util

Class SharedFileInputStream

public class SharedFileInputStream extends FilterInputStream implements SharedInputStream

Constructor Summary
SharedFileInputStream(String fileName)
SharedFileInputStream(File file)
Method Summary
voiddispose()
Close of this stream and any substreams that have been created from it.
longgetPosition()
SharedFileInputStreamgetRoot()
Return the shared stream that represents the top most stream that this stream inherits from.
voidmark(int readLimit)
booleanmarkSupported()
InputStreamnewStream(long start, long finish)
intread(byte[] buf)
intread(byte[] buf, int off, int len)
intread()
voidreset()
longskip(long n)

Constructor Detail

SharedFileInputStream

public SharedFileInputStream(String fileName)

SharedFileInputStream

public SharedFileInputStream(File file)

Method Detail

dispose

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

Throws: IOException on problem closing the main stream.

getPosition

public long getPosition()

getRoot

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.

mark

public void mark(int readLimit)

markSupported

public boolean markSupported()

newStream

public InputStream newStream(long start, long finish)

read

public int read(byte[] buf)

read

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

read

public int read()

reset

public void reset()

skip

public long skip(long n)