com.objectwave.utility
Class CachedRandomAccessFile.FileBlock

java.lang.Object
  |
  +--com.objectwave.utility.CachedRandomAccessFile.FileBlock
Enclosing class:
CachedRandomAccessFile

protected class CachedRandomAccessFile.FileBlock
extends java.lang.Object


Field Summary
 byte[] bytes
          Description of the Field
 long filePos
          Description of the Field
 int len
          Description of the Field
 CachedRandomAccessFile.FileBlock nextModifiedBlock
          Description of the Field
 CachedRandomAccessFile.FileBlock prevModifiedBlock
          Description of the Field
 
Constructor Summary
CachedRandomAccessFile.FileBlock(int blockSize)
          Constructor for the FileBlock object
 
Method Summary
 int getOffset(long filePos)
          Gets the Offset attribute of the FileBlock object
 boolean isLoaded()
          Gets the Loaded attribute of the FileBlock object
 boolean isModified()
          Gets the Modified attribute of the FileBlock object
 void modified()
          Description of the Method
 int read()
          Description of the Method
 java.lang.String toString()
          Description of the Method
 void write()
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

bytes

public byte[] bytes
Description of the Field


len

public int len
Description of the Field


filePos

public long filePos
Description of the Field


prevModifiedBlock

public CachedRandomAccessFile.FileBlock prevModifiedBlock
Description of the Field


nextModifiedBlock

public CachedRandomAccessFile.FileBlock nextModifiedBlock
Description of the Field

Constructor Detail

CachedRandomAccessFile.FileBlock

public CachedRandomAccessFile.FileBlock(int blockSize)
Constructor for the FileBlock object

Parameters:
blockSize - Description of Parameter
Method Detail

isModified

public boolean isModified()
Gets the Modified attribute of the FileBlock object

Returns:
The Modified value

isLoaded

public boolean isLoaded()
Gets the Loaded attribute of the FileBlock object

Returns:
The Loaded value

getOffset

public int getOffset(long filePos)
Gets the Offset attribute of the FileBlock object

Parameters:
filePos - Description of Parameter
Returns:
The Offset value

read

public int read()
         throws java.io.IOException
Description of the Method

Returns:
Description of the Returned Value
Throws:
java.io.IOException - Description of Exception

write

public void write()
           throws java.io.IOException
Description of the Method

Throws:
java.io.IOException - Description of Exception

modified

public void modified()
Description of the Method


toString

public java.lang.String toString()
Description of the Method

Overrides:
toString in class java.lang.Object
Returns:
Description of the Returned Value