Class FileMappedInputStream


  • public final class FileMappedInputStream
    extends java.lang.Object
    ファイルにマッピングされた入力ストリーム
    net.reduls.igo以下のパッケージではファイルからバイナリデータを取得する場合、必ずこのクラスが使用される
    • Constructor Summary

      Constructors 
      Constructor Description
      FileMappedInputStream​(java.lang.String filepath)
      入力ストリームを作成する
    • Constructor Detail

      • FileMappedInputStream

        public FileMappedInputStream​(java.lang.String filepath)
                              throws java.io.IOException
        入力ストリームを作成する
        Parameters:
        filepath - マッピングするファイルのパス
        Throws:
        java.io.IOException
    • 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()