public class FileCacheRandomAccessOutputStream extends RandomAccessOutputStream
closed, dist| Constructor and Description |
|---|
FileCacheRandomAccessOutputStream(java.io.OutputStream dist) |
FileCacheRandomAccessOutputStream(java.io.OutputStream dist,
int bufLen) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this stream and releases any system resources
associated with the stream.
|
void |
disposeBefore(long pos) |
long |
getFlushPos() |
long |
getLength()
Returns the total length of data that has been cached,
regardless of whether any early blocks have been disposed.
|
long |
getStreamPointer() |
void |
reset()
Reset this stream to be used again
|
void |
seek(long pos) |
void |
shallowClose()
Closes the RandomAccessInputStream and it's underlying stream
|
void |
write(byte[] b,
int off,
int len) |
void |
write(int value) |
void |
writeToStream(long len) |
ensureOpen, finalize, getEndian, setWriteStrategy, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeS15Fixed16Number, writeShort, writeU16Fixed16Number, writeU8Fixed8Number, writeUTFpublic FileCacheRandomAccessOutputStream(java.io.OutputStream dist)
throws java.io.IOException
java.io.IOExceptionpublic FileCacheRandomAccessOutputStream(java.io.OutputStream dist,
int bufLen)
throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class RandomAccessOutputStreamjava.io.IOException - if an I/O error occurs.public void shallowClose()
throws java.io.IOException
RandomAccessOutputStreamshallowClose in class RandomAccessOutputStreamjava.io.IOExceptionpublic void disposeBefore(long pos)
disposeBefore in class RandomAccessOutputStreampublic long getFlushPos()
getFlushPos in class RandomAccessOutputStreampublic long getLength()
RandomAccessOutputStreamgetLength in class RandomAccessOutputStreampublic long getStreamPointer()
getStreamPointer in class RandomAccessOutputStreampublic void reset()
RandomAccessOutputStreamreset in class RandomAccessOutputStreampublic void seek(long pos)
throws java.io.IOException
seek in class RandomAccessOutputStreamjava.io.IOExceptionpublic void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in interface java.io.DataOutputwrite in class RandomAccessOutputStreamjava.io.IOExceptionpublic void write(int value)
throws java.io.IOException
write in interface java.io.DataOutputwrite in class RandomAccessOutputStreamjava.io.IOExceptionpublic void writeToStream(long len)
throws java.io.IOException
writeToStream in class RandomAccessOutputStreamjava.io.IOException