@NonNullApi
程序包 org.springframework.batch.item.file.transform
Infrastructure implementations of io file support transform concerns.
接口概要 接口 说明 FieldExtractor<T> This class will convert an object to an array of its parts.FieldSet Interface used by flat file input sources to encapsulate concerns of converting an array of Strings to Java native types.FieldSetFactory Factory interface for creatingFieldSet
instances.LineAggregator<T> Interface used to create string representing object.LineTokenizer Interface that is used by framework to split string obtained typically from a file into tokens.类概要 类 说明 AbstractLineTokenizer Abstract class handling common concerns of variousLineTokenizer
implementations such as dealing with names and actual construction ofFieldSet
BeanWrapperFieldExtractor<T> This is a field extractor for a java bean.DefaultFieldSet Default implementation ofFieldSet
using Java using Java primitive and standard types and utilities.DefaultFieldSetFactory Default implementation ofFieldSetFactory
with no special knowledge of theFieldSet
required.DelimitedLineAggregator<T> ALineAggregator
implementation that converts an object into a delimited list of strings.DelimitedLineTokenizer ALineTokenizer
implementation that splits the input String on a configurable delimiter.ExtractorLineAggregator<T> An abstractLineAggregator
implementation that utilizes aFieldExtractor
to convert the incoming object to an array of its parts.FixedLengthTokenizer Tokenizer used to process data obtained from files with fixed-length format.FormatterLineAggregator<T> ALineAggregator
implementation which produces a String by aggregating the provided item via theFormatter
syntax.PassThroughFieldExtractor<T> FieldExtractor
that just returns the original item.PassThroughLineAggregator<T> ALineAggregator
implementation that simply callsObject.toString()
on the given objectPatternMatchingCompositeLineTokenizer ALineTokenizer
implementation that stores a mapping of String patterns to delegateLineTokenizer
s.Range A class to represent ranges.RangeArrayPropertyEditor Property editor implementation which parses string and creates array of ranges.RecursiveCollectionLineAggregator<T> An implementation ofLineAggregator
that concatenates a collection of items of a common type with the system line separator.RegexLineTokenizer Line-tokenizer using a regular expression to filter out data (by using matching and non-matching groups).枚举概要 枚举 说明 Alignment 异常错误概要 异常错误 说明 ConversionException FlatFileFormatException Exception indicating that some type of error has occurred while attempting to parse a line of input into tokens.IncorrectLineLengthException Exception indicating that the line size expected is different from what is expected.IncorrectTokenCountException Exception indicating that an incorrect number of tokens have been found while parsing a file.