public final class FileChannels
extends java.lang.Object
FileChannel
.Modifier | Constructor and Description |
---|---|
private |
FileChannels()
Don't instantiate.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
contentEquals(java.nio.channels.FileChannel channel1,
java.nio.channels.FileChannel channel2,
int byteBufferSize)
Tests if two RandomAccessFiles contents are equal.
|
private static long |
size(java.nio.channels.FileChannel channel) |
public static boolean contentEquals(java.nio.channels.FileChannel channel1, java.nio.channels.FileChannel channel2, int byteBufferSize) throws java.io.IOException
channel1
- A FileChannel.channel2
- Another FileChannel.byteBufferSize
- The two internal buffer capacities, in bytes.java.io.IOException
- if an I/O error occurs.private static long size(java.nio.channels.FileChannel channel) throws java.io.IOException
java.io.IOException