org.tinygroup.convert.text
Class TextBaseParse

java.lang.Object
  extended by org.tinygroup.convert.text.TextBaseParse
Direct Known Subclasses:
TextToObject, TextToObject, TextToXml, XmlToText

public class TextBaseParse
extends Object


Constructor Summary
TextBaseParse()
           
 
Method Summary
protected  void checkFeidlCount(String[] fieldNames, int i, String[] values)
           
protected  TextRow computeDataRow(List<String> values)
           
protected  TextRow computeDataRow(String[] values)
           
 Text computeFixWidthText(String inputData, String lineSplit)
           
 Text computeText(String inputData, String lineSplit, String fieldSplit)
           
protected  TextRow computeTitleRow(List<String> titles)
           
protected  TextRow computeTitleRow(String[] titles)
           
protected  int getFieldEnd(String string, int start)
           
protected  List<Integer> getFieldEndPos(String string)
           
protected  List<String> getFisrtRowRealNames(Text text)
           
protected  List<String> getFixData(String string, List<Integer> filedBytesPosList)
           
protected  List<String> getFixTitle(String string, List<Integer> fieldPosList, List<Integer> filedBytesPosList)
           
protected  String getProperty(String title)
           
 Map<String,String> getTitleMap()
           
 void setTitleMap(Map<String,String> titleMap)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextBaseParse

public TextBaseParse()
Method Detail

getTitleMap

public Map<String,String> getTitleMap()

setTitleMap

public void setTitleMap(Map<String,String> titleMap)

computeDataRow

protected TextRow computeDataRow(List<String> values)

computeTitleRow

protected TextRow computeTitleRow(List<String> titles)

getFixTitle

protected List<String> getFixTitle(String string,
                                   List<Integer> fieldPosList,
                                   List<Integer> filedBytesPosList)
                            throws ConvertException
Throws:
ConvertException

getFixData

protected List<String> getFixData(String string,
                                  List<Integer> filedBytesPosList)
                           throws ConvertException
Throws:
ConvertException

getFieldEndPos

protected List<Integer> getFieldEndPos(String string)

getFieldEnd

protected int getFieldEnd(String string,
                          int start)

computeDataRow

protected TextRow computeDataRow(String[] values)

computeTitleRow

protected TextRow computeTitleRow(String[] titles)

checkFeidlCount

protected void checkFeidlCount(String[] fieldNames,
                               int i,
                               String[] values)
                        throws ConvertException
Throws:
ConvertException

getProperty

protected String getProperty(String title)

computeFixWidthText

public Text computeFixWidthText(String inputData,
                                String lineSplit)
                         throws ConvertException
Throws:
ConvertException

computeText

public Text computeText(String inputData,
                        String lineSplit,
                        String fieldSplit)
                 throws ConvertException
Throws:
ConvertException

getFisrtRowRealNames

protected List<String> getFisrtRowRealNames(Text text)


Copyright © 2006–2015 TinyGroup. All rights reserved.