Package net.reduls.igo.util
Class FileMappedInputStream
java.lang.Object
net.reduls.igo.util.FileMappedInputStream
ファイルにマッピングされた入力ストリーム
net.reduls.igo以下のパッケージではファイルからバイナリデータを取得する場合、必ずこのクラスが使用される
net.reduls.igo以下のパッケージではファイルからバイナリデータを取得する場合、必ずこのクラスが使用される
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()char[]getCharArray(int elementCount) intgetInt()int[]getIntArray(int elementCount) static int[]getIntArray(String filepath) short[]getShortArray(int elementCount) getString(int elementCount) static Stringintsize()
-
Constructor Details
-
FileMappedInputStream
入力ストリームを作成する- Parameters:
filepath- マッピングするファイルのパス- Throws:
IOException
-
-
Method Details
-
getInt
- Throws:
IOException
-
getIntArray
- Throws:
IOException
-
getIntArray
- Throws:
IOException
-
getShortArray
- Throws:
IOException
-
getCharArray
- Throws:
IOException
-
getString
- Throws:
IOException
-
getString
- Throws:
IOException
-
size
- Throws:
IOException
-
close
public void close()
-