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, writeUTF
public MemoryCacheRandomAccessOutputStream(java.io.OutputStream dist)
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class RandomAccessOutputStream
java.io.IOException
public void shallowClose() throws java.io.IOException
RandomAccessOutputStream
shallowClose
in class RandomAccessOutputStream
java.io.IOException
public void disposeBefore(long pos) throws java.io.IOException
disposeBefore
in class RandomAccessOutputStream
java.io.IOException
public long getFlushPos()
getFlushPos
in class RandomAccessOutputStream
public long getLength()
getLength
in class RandomAccessOutputStream
public long getStreamPointer()
getStreamPointer
in class RandomAccessOutputStream
public void reset()
RandomAccessOutputStream
reset
in class RandomAccessOutputStream
public void seek(long pos) throws java.io.IOException
seek
in class RandomAccessOutputStream
java.io.IOException
public void write(byte[] b, int off, int len) throws java.io.IOException
write
in interface java.io.DataOutput
write
in class RandomAccessOutputStream
java.io.IOException
public void write(int value) throws java.io.IOException
write
in interface java.io.DataOutput
write
in class RandomAccessOutputStream
java.io.IOException
public void writeToStream(long len) throws java.io.IOException
writeToStream
in class RandomAccessOutputStream
java.io.IOException