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, writeUTF
public FileCacheRandomAccessOutputStream(java.io.OutputStream dist) throws java.io.IOException
java.io.IOException
public FileCacheRandomAccessOutputStream(java.io.OutputStream dist, int bufLen) throws java.io.IOException
java.io.IOException
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
- if an I/O error occurs.public void shallowClose() throws java.io.IOException
RandomAccessOutputStream
shallowClose
in class RandomAccessOutputStream
java.io.IOException
public void disposeBefore(long pos)
disposeBefore
in class RandomAccessOutputStream
public long getFlushPos()
getFlushPos
in class RandomAccessOutputStream
public long getLength()
RandomAccessOutputStream
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