code: public void write(byte[] buffer) throws IOException {
          check();
  
          //assert buffer != null : "Der Buffer ist null";
          if (isClose()) {
              throw new IOException("TAEnabledChanneList is closed");
          }
          long currentPosition = this.position();
          this.raf.write(buffer);
          // this.incPosition(buffer.length);
  
          assert this.position() - currentPosition == buffer.length : "Expected new position : " + currentPosition + buffer.length + " actual position " + this.position();
  
  
      }
docs: appends a byte[] to the file, but doesn't commit.
  
  In order to re-read the content it is recommended to store the size of the byte[] before writing the byte[]. This value can be used as the value of parameter length.
  
  @param buffer value to be appended
  @throws java.io.IOException IO Error
  
  @see #read(int)