org.apache.commons.vfs.provider
Class DefaultFileContent.FileRandomAccessContent

java.lang.Object
  extended by org.apache.commons.vfs.util.MonitorRandomAccessContent
      extended by org.apache.commons.vfs.provider.DefaultFileContent.FileRandomAccessContent
All Implemented Interfaces:
java.io.DataInput, java.io.DataOutput, RandomAccessContent
Enclosing class:
DefaultFileContent

private final class DefaultFileContent.FileRandomAccessContent
extends MonitorRandomAccessContent

An input/output stream for reading/writing content on random positions


Field Summary
private  RandomAccessContent content
           
private  FileObject file
           
 
Constructor Summary
DefaultFileContent.FileRandomAccessContent(FileObject file, RandomAccessContent content)
           
 
Method Summary
protected  void onClose()
          Called after the stream has been closed.
 
Methods inherited from class org.apache.commons.vfs.util.MonitorRandomAccessContent
close, getFilePointer, getInputStream, length, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, seek, skipBytes, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

file

private final FileObject file

content

private final RandomAccessContent content
Constructor Detail

DefaultFileContent.FileRandomAccessContent

DefaultFileContent.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 class MonitorRandomAccessContent
Throws:
java.io.IOException