List of usage examples for java.nio.channels FileChannel toString
public String toString()
From source file:graphene.util.fs.FileUtils.java
public static void truncateFile(final FileChannel fileChannel, final long position) throws IOException { int count = 0; boolean success = false; do {// www . j a va 2 s. com count++; try { fileChannel.truncate(position); success = true; } catch (final IOException e) { } } while (!success && (count <= WINDOWS_RETRY_COUNT)); if (!success) { throw new IOException("Failure to truncateFile " + fileChannel.toString()); } }