Code example for FileChannel

Methods: force

0
  } 
 
 
  @Override 
  public void commit() throws IOException { 
    file.force(false);
  } 
 
 
  @Override 
  public boolean isOpen() { 
    return file.isOpen();
  } 
 
 
  @Override 
  public void close() throws IOException { 
    file.close();
  }