Class DefaultFileContent.FileRandomAccessContent
java.lang.Object
org.apache.commons.vfs2.util.MonitorRandomAccessContent
org.apache.commons.vfs2.provider.DefaultFileContent.FileRandomAccessContent
- All Implemented Interfaces:
Closeable, DataInput, DataOutput, AutoCloseable, RandomAccessContent
- Enclosing class:
DefaultFileContent
An input/output stream for reading/writing content on random positions
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class MonitorRandomAccessContent
getFilePointer, getInputStream, length, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, seek, setLength, skipBytes, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
-
Field Details
-
file
-
-
Constructor Details
-
FileRandomAccessContent
FileRandomAccessContent(FileObject file, RandomAccessContent content)
-
-
Method Details
-
onClose
Called after the stream has been closed.- Overrides:
onClosein classMonitorRandomAccessContent- Throws:
IOException- if subclass throws it.
-
close
Description copied from class:MonitorRandomAccessContentCloses this content.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceRandomAccessContent- Overrides:
closein classMonitorRandomAccessContent- Throws:
FileSystemException
-