com.imagero.uio.impl
Class RandomAccessFileX

java.lang.Object
  extended byjava.io.RandomAccessFile
      extended bycom.imagero.uio.impl.RandomAccessFileX
All Implemented Interfaces:
java.io.DataInput, java.io.DataOutput
Direct Known Subclasses:
OffsetRandomAccessFile, TmpRandomAccessFile

public class RandomAccessFileX
extends java.io.RandomAccessFile

Enhanced RandomAccessFile which a) closes itself on finalization and b) knows if it's writable or not


Constructor Summary
RandomAccessFileX(java.io.File file, java.lang.String mode)
           
RandomAccessFileX(java.lang.String name, java.lang.String mode)
           
 
Method Summary
protected  void finalize()
           
 java.lang.String getMode()
           
 boolean writable()
           
 
Methods inherited from class java.io.RandomAccessFile
close, getChannel, getFD, getFilePointer, length, read, read, read, 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
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomAccessFileX

public RandomAccessFileX(java.lang.String name,
                         java.lang.String mode)
                  throws java.io.IOException

RandomAccessFileX

public RandomAccessFileX(java.io.File file,
                         java.lang.String mode)
                  throws java.io.IOException
Method Detail

finalize

protected void finalize()
                 throws java.lang.Throwable
Throws:
java.lang.Throwable

getMode

public java.lang.String getMode()

writable

public boolean writable()