Package org.springframework.batch.item.file.transform

Examples of org.springframework.batch.item.file.transform.FieldSet.readLong()


   
    if(line.charAt(0) == 'F'){
      //line starts with F, so the footer tokenizer should tokenize it.
      FieldSet fs = footerTokenizer.tokenize(line);
      long customerUpdateTotal = stepExecution.getReadCount();
      long fileUpdateTotal = fs.readLong(1);
      if(customerUpdateTotal != fileUpdateTotal){
        throw new IllegalStateException("The total number of customer updates in the file footer does not match the " +
            "number entered  File footer total: [" + fileUpdateTotal + "] Total encountered during processing: [" +
            customerUpdateTotal + "]");
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.