public final class IllegalFileLengthMessage extends Message
ASCENDING, DESCENDING
Constructor and Description |
---|
IllegalFileLengthMessage(long fileLength,
int blockSize)
Creates a new
IllegalFileLengthMessage instance taking the length of a file incompatible to a given block
size. |
public IllegalFileLengthMessage(long fileLength, int blockSize)
IllegalFileLengthMessage
instance taking the length of a file incompatible to a given block
size.fileLength
- Length of a file incompatible to blockSize
.blockSize
- Length of one block in byte.IllegalArgumentException
- if either fileLength
or blockSize
is negative, or if
fileLength % blockSize
equals 0
.public Object[] getFormatArguments(Locale locale)
getFormatArguments
in class Message
blockSize
.Copyright © 2005–2014 jDTAUS. All rights reserved.