| Modifier and Type | Method and Description |
|---|---|
IllegalArgumentException |
negativeCount(long count)
Creates an exception that can be thrown if
FileChannel.transferTo(long, long, WritableByteChannel) or
FileChannel.transferFrom(ReadableByteChannel, long, long) is called with a negative count. |
IllegalArgumentException |
negativePosition(long position)
Creates an exception that can be thrown if
FileChannel.read(ByteBuffer, long), FileChannel.write(ByteBuffer, long),
FileChannel.transferTo(long, long, WritableByteChannel) or FileChannel.transferFrom(ReadableByteChannel, long, long)
is called with a negative position. |
public IllegalArgumentException negativeCount(long count)
FileChannel.transferTo(long, long, WritableByteChannel) or
FileChannel.transferFrom(ReadableByteChannel, long, long) is called with a negative count.count - The negative count.public IllegalArgumentException negativePosition(long position)
FileChannel.read(ByteBuffer, long), FileChannel.write(ByteBuffer, long),
FileChannel.transferTo(long, long, WritableByteChannel) or FileChannel.transferFrom(ReadableByteChannel, long, long)
is called with a negative position.position - The negative position.Copyright © 2016–2020. All rights reserved.