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:
java.io.Closeable
,java.io.DataInput
,java.io.DataOutput
,java.lang.AutoCloseable
,RandomAccessContent
- Enclosing class:
- DefaultFileContent
private final class DefaultFileContent.FileRandomAccessContent extends MonitorRandomAccessContent
An input/output stream for reading/writing content on random positions
-
-
Field Summary
Fields Modifier and Type Field Description private FileObject
file
-
Constructor Summary
Constructors Constructor Description FileRandomAccessContent(FileObject file, RandomAccessContent content)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Closes this content.protected void
onClose()
Called after the stream has been closed.-
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 Detail
-
file
private final FileObject file
-
-
Constructor Detail
-
FileRandomAccessContent
FileRandomAccessContent(FileObject file, RandomAccessContent content)
-
-
Method Detail
-
onClose
protected void onClose() throws java.io.IOException
Called after the stream has been closed.- Overrides:
onClose
in classMonitorRandomAccessContent
- Throws:
java.io.IOException
- if subclass throws it.
-
close
public void close() throws FileSystemException
Description copied from class:MonitorRandomAccessContent
Closes this content.- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in interfaceRandomAccessContent
- Overrides:
close
in classMonitorRandomAccessContent
- Throws:
FileSystemException
-
-