Modifier and Type | Method and Description |
---|---|
IllegalArgumentException |
negativePosition(long position)
Creates an exception that can be thrown if
SeekableByteChannel.position(long) is called with a negative position. |
IllegalArgumentException |
negativeSize(long size)
Creates an exception that can be thrown if
SeekableByteChannel.truncate(long) is called with a negative size. |
public IllegalArgumentException negativePosition(long position)
SeekableByteChannel.position(long)
is called with a negative position.position
- The negative position.public IllegalArgumentException negativeSize(long size)
SeekableByteChannel.truncate(long)
is called with a negative size.size
- The negative size.Copyright © 2016–2023. All rights reserved.