public static int write()

in src/main/java/org/apache/datasketches/Files.java [450:460]


  public static int write(final String out, final FileChannel fc, final long position,
      final Charset charset) {
    final int bytes;
    final ByteBuffer bb = ByteBuffer.wrap(out.getBytes(charset));
    try {
      bytes = fc.write(bb, position);
    } catch (final IOException e) {
      throw new RuntimeException(e);
    }
    return bytes;
  }