Class RandomAccessStream.OutputStreamView
java.lang.Object
java.io.OutputStream
com.twelvemonkeys.io.SeekableOutputStream
com.twelvemonkeys.io.RandomAccessStream.OutputStreamView
- All Implemented Interfaces:
Seekable, Closeable, Flushable, AutoCloseable
- Enclosing class:
RandomAccessStream
- Version:
- $Id: //depot/branches/personal/haraldk/twelvemonkeys/release-2/twelvemonkeys-core/src/main/java/com/twelvemonkeys/io/RandomAccessStream.java#3 $
-
Field Summary
FieldsFields inherited from class SeekableOutputStream
closed, flushedPosition, markedPositions, position -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidflushBeforeImpl(long pPosition) booleanisCached()Returns true if thisSeekablestream caches data itself in order to allow seeking backwards.booleanReturns true if thisSeekablestream caches data itself in order to allow seeking backwards, and the cache is kept in a temporary file.booleanReturns true if thisSeekablestream caches data itself in order to allow seeking backwards, and the cache is kept in main memory.protected voidseekImpl(long pPosition) voidwrite(byte[] pBytes, int pOffset, int pLength) voidwrite(int pByte) Methods inherited from class SeekableOutputStream
checkOpen, close, flush, flushBefore, getFlushedPosition, getStreamPosition, mark, reset, seek, writeMethods inherited from class OutputStream
nullOutputStream
-
Field Details
-
mStream
-
-
Constructor Details
-
OutputStreamView
-
-
Method Details
-
isCached
public boolean isCached()Description copied from interface:SeekableReturns true if thisSeekablestream caches data itself in order to allow seeking backwards. Applications may consult this in order to decide how frequently, or whether, to flush in order to conserve cache resources.- Returns:
trueif thisSeekablecaches data.- See Also:
-
isCachedFile
public boolean isCachedFile()Description copied from interface:SeekableReturns true if thisSeekablestream caches data itself in order to allow seeking backwards, and the cache is kept in a temporary file. Applications may consult this in order to decide how frequently, or whether, to flush in order to conserve cache resources.- Returns:
trueif thisSeekablecaches data in a temporary file.- See Also:
-
isCachedMemory
public boolean isCachedMemory()Description copied from interface:SeekableReturns true if thisSeekablestream caches data itself in order to allow seeking backwards, and the cache is kept in main memory. Applications may consult this in order to decide how frequently, or whether, to flush in order to conserve cache resources.- Returns:
trueif thisSeekablecaches data in main memory.- See Also:
-
closeImpl
- Specified by:
closeImplin classSeekableOutputStream- Throws:
IOException
-
flushBeforeImpl
- Specified by:
flushBeforeImplin classSeekableOutputStream- Throws:
IOException
-
seekImpl
- Specified by:
seekImplin classSeekableOutputStream- Throws:
IOException
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-