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