Package org.apache.commons.vfs2.provider
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 org.apache.commons.vfs2.util.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:
onClose
in classMonitorRandomAccessContent
- Throws:
IOException
- if subclass throws it.
-
close
Description copied from class:MonitorRandomAccessContent
Closes this content.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceRandomAccessContent
- Overrides:
close
in classMonitorRandomAccessContent
- Throws:
FileSystemException
-