com.imagero.uio.impl
Class TmpRandomAccessFile

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

public class TmpRandomAccessFile
extends RandomAccessFileX

TmpRandomAccessFile closes itself on finalization and tries to delete file.


Constructor Summary
TmpRandomAccessFile(java.io.File file, java.lang.String mode)
           
TmpRandomAccessFile(java.lang.String name, java.lang.String mode)
           
 
Method Summary
 void close()
           
protected  void finalize()
           
 
Methods inherited from class com.imagero.uio.impl.RandomAccessFileX
getMode, writable
 
Methods inherited from class java.io.RandomAccessFile
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

TmpRandomAccessFile

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

TmpRandomAccessFile

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

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException

finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class RandomAccessFileX
Throws:
java.lang.Throwable