public class MemoryCacheRandomAccessOutputStream extends RandomAccessOutputStream
closed, dist| Constructor and Description |
|---|
MemoryCacheRandomAccessOutputStream(java.io.OutputStream dist) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
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 MemoryCacheRandomAccessOutputStream(java.io.OutputStream dist)
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class RandomAccessOutputStreamjava.io.IOExceptionpublic void shallowClose()
throws java.io.IOException
RandomAccessOutputStreamshallowClose in class RandomAccessOutputStreamjava.io.IOExceptionpublic void disposeBefore(long pos)
throws java.io.IOException
disposeBefore in class RandomAccessOutputStreamjava.io.IOExceptionpublic long getFlushPos()
getFlushPos in class RandomAccessOutputStreampublic long getLength()
getLength 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