org.tinygroup.convert.textxml.fixwidth
Class TextToXml
java.lang.Object
org.tinygroup.convert.text.TextBaseParse
org.tinygroup.convert.textxml.fixwidth.TextToXml
- All Implemented Interfaces:
- Converter<String,String>
public class TextToXml
- extends TextBaseParse
- implements Converter<String,String>
| Methods inherited from class org.tinygroup.convert.text.TextBaseParse |
checkFeidlCount, computeDataRow, computeDataRow, computeFixWidthText, computeText, computeTitleRow, computeTitleRow, getFieldEnd, getFieldEndPos, getFisrtRowRealNames, getFixData, getFixTitle, getProperty, getTitleMap, setTitleMap |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextToXml
public TextToXml(Map<String,String> titleMap,
String rootNodeName,
String rowNodeName,
String lineSplit)
- 文本转换为Xml
- Parameters:
rootNodeName - 根节点名称rowNodeName - 行节点名称lineSplit - 行分隔附
convert
public String convert(String inputData)
throws ConvertException
- Specified by:
convert in interface Converter<String,String>
- Throws:
ConvertException
Copyright © 2006–2015 TinyGroup. All rights reserved.