Package java.nio

Examples of java.nio.MappedByteBuffer.force()


  private void resizeNio(RandomAccessFile file) throws IOException {
    FileChannel channel = file.getChannel();
    MappedByteBuffer buffer = channel.map(MapMode.READ_WRITE, 24L, 4L);
    buffer.put(this.getDimensionMask());
    buffer.force();
  }


  /**
   * {@inheritDoc}
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.