okuyama.imdst.util.io
クラス CustomRandomAccess

java.lang.Object
  上位を拡張 java.io.RandomAccessFile
      上位を拡張 okuyama.imdst.util.io.CustomRandomAccess
すべての実装されたインタフェース:
java.io.Closeable, java.io.DataInput, java.io.DataOutput

public class CustomRandomAccess
extends java.io.RandomAccessFile

IOのRandomAccessFileのラッパー.

作成者:
T.Okuyama

コンストラクタの概要
CustomRandomAccess(java.io.File target, java.lang.String type)
           
 
メソッドの概要
 void close()
           
 int read(byte[] data, int start, int size)
           
 void seek(long seekPoint)
           
 void write(byte[] data, int start, int size)
           
 
クラス java.io.RandomAccessFile から継承されたメソッド
getChannel, getFD, getFilePointer, length, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, setLength, skipBytes, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

CustomRandomAccess

public CustomRandomAccess(java.io.File target,
                          java.lang.String type)
                   throws java.io.FileNotFoundException
例外:
java.io.FileNotFoundException
メソッドの詳細

seek

public void seek(long seekPoint)
          throws java.io.IOException
オーバーライド:
クラス java.io.RandomAccessFile 内の seek
例外:
java.io.IOException

read

public int read(byte[] data,
                int start,
                int size)
         throws java.io.IOException
オーバーライド:
クラス java.io.RandomAccessFile 内の read
例外:
java.io.IOException

write

public void write(byte[] data,
                  int start,
                  int size)
           throws java.io.IOException
定義:
インタフェース java.io.DataOutput 内の write
オーバーライド:
クラス java.io.RandomAccessFile 内の write
例外:
java.io.IOException

close

public void close()
           throws java.io.IOException
定義:
インタフェース java.io.Closeable 内の close
オーバーライド:
クラス java.io.RandomAccessFile 内の close
例外:
java.io.IOException