类 IncorrectLineLengthException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- java.lang.RuntimeException
- org.springframework.batch.item.file.transform.FlatFileFormatException
- org.springframework.batch.item.file.transform.IncorrectLineLengthException
- 所有已实现的接口:
java.io.Serializable
public class IncorrectLineLengthException extends FlatFileFormatException
Exception indicating that the line size expected is different from what is expected.- 从以下版本开始:
- 1.1
- 作者:
- Lucas Ward, Michael Minella
- 另请参阅:
- 序列化表格
构造器概要
构造器 构造器 说明 IncorrectLineLengthException(int expectedLength, int actualLength)
IncorrectLineLengthException(int expectedLength, int actualLength, java.lang.String input)
IncorrectLineLengthException(java.lang.String message, int expectedLength, int actualLength)
IncorrectLineLengthException(java.lang.String message, int expectedLength, int actualLength, java.lang.String input)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 int
getActualLength()
Retrieves the actual length that was recorded for this exception.int
getExpectedLength()
Retrieves the expected length that was recorded for this exception.从类继承的方法 org.springframework.batch.item.file.transform.FlatFileFormatException
getInput
构造器详细资料
IncorrectLineLengthException
public IncorrectLineLengthException(java.lang.String message, int expectedLength, int actualLength, java.lang.String input)
- 参数:
message
- the message for this exception.expectedLength
- int containing the length that was expected.actualLength
- int containing the actual length.input
- theString
that contained the contents that caused the exception to be thrown.- 从以下版本开始:
- 2.2.6
IncorrectLineLengthException
public IncorrectLineLengthException(java.lang.String message, int expectedLength, int actualLength)
- 参数:
message
- the message for this exception.expectedLength
- int containing the length that was expected.actualLength
- int containing the actual length.
IncorrectLineLengthException
public IncorrectLineLengthException(int expectedLength, int actualLength, java.lang.String input)
- 参数:
expectedLength
- int containing the length that was expected.actualLength
- int containing the actual length.input
- theString
that contained the contents that caused the exception to be thrown.- 从以下版本开始:
- 2.2.6
IncorrectLineLengthException
public IncorrectLineLengthException(int expectedLength, int actualLength)
- 参数:
expectedLength
- int containing the length that was expected.actualLength
- int containing the actual length.
方法详细资料
getActualLength
public int getActualLength()
Retrieves the actual length that was recorded for this exception.- 返回:
- int containing the actual length.
getExpectedLength
public int getExpectedLength()
Retrieves the expected length that was recorded for this exception.- 返回:
- int containing the expected length.