Class FileMappedOutputStream


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

      Constructors 
      Constructor Description
      FileMappedOutputStream​(java.lang.String filepath, int size)
      サイズを指定して出力ストリームを作成する
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void putChar​(char value)  
      void putInt​(int value)  
      void putShort​(short value)  
      void putString​(java.lang.String src)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FileMappedOutputStream

        public FileMappedOutputStream​(java.lang.String filepath,
                                      int size)
                               throws java.io.IOException
        サイズを指定して出力ストリームを作成する
        Parameters:
        filepath - マッピングされるファイルのパス
        size - ファイル(=出力するデータ)のサイズ。このサイズを超えて出力が行われた場合の動作は未定義。
        Throws:
        java.io.IOException
    • Method Detail

      • putInt

        public void putInt​(int value)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • putChar

        public void putChar​(char value)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • putShort

        public void putShort​(short value)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • putString

        public void putString​(java.lang.String src)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • close

        public void close()