com.levigo.jadice.document.io
Class UncloseableSubfileSeekableInputStream
java.lang.Object
java.io.InputStream
com.levigo.jadice.document.io.SeekableInputStream
com.levigo.jadice.document.io.SubfileSeekableInputStream
com.levigo.jadice.document.io.UncloseableSubfileSeekableInputStream
- All Implemented Interfaces:
- Closeable, DataInput, ImageInputStream
public class UncloseableSubfileSeekableInputStream
- extends SubfileSeekableInputStream
A SubfileSeekableInputStream
implementation which can ignore close()
method
calls.
Method Summary |
void |
close()
Closes this seekable input stream. |
Methods inherited from class com.levigo.jadice.document.io.SeekableInputStream |
checkClosed, finalize, flush, flushBefore, getBitOffset, getByteOrder, getFlushedPosition, isCached, isCachedFile, isCachedMemory, mark, mark, read, readBit, readBits, readBoolean, readByte, readBytes, readChar, readDouble, readFloat, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readInt, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedInt, readUnsignedInt, readUnsignedShort, readUTF, reset, resetToInitialState, setBitOffset, setByteOrder, skip, skipBytes, skipBytes |
UncloseableSubfileSeekableInputStream
public UncloseableSubfileSeekableInputStream(SeekableInputStream stream,
long start,
long length,
boolean propagateClose)
- Creates an uncloseable seekable stream part access. Depending on the
propagateClose
parameter close()
method calls will be ignored or not.
- Parameters:
stream
- the origin SeekableInputStream
start
- the start offset of the partial view in the origin streamlength
- the length of the partial view to be read of the origin streampropagateClose,
- set to true
calls of the close()
will be forwarded
to the origin stream, false
a call of the close()
will be ignored.
UncloseableSubfileSeekableInputStream
public UncloseableSubfileSeekableInputStream(SeekableInputStream stream,
long start,
long length)
- Creates an uncloseable seekable stream part access. Any
close()
method calls will be
ignored.
- Parameters:
stream
- the origin SeekableInputStream
start
- the start offset of the partial view in the origin streamlength
- the length of the partial view to be read of the origin stream
close
public void close()
throws IOException
- Description copied from class:
SeekableInputStream
- Closes this seekable input stream. Further attempts to read from it will throw
IOException
s. Additional attempts to SeekableInputStream.close()
, however, have no effect.
- Specified by:
close
in interface Closeable
- Specified by:
close
in interface ImageInputStream
- Overrides:
close
in class SubfileSeekableInputStream
- Throws:
IOException
- See Also:
InputStream.close()
Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.