public class BaseTableConvertXMLUtility
extends java.lang.Object
Constructor and Description |
---|
BaseTableConvertXMLUtility(java.lang.String encodingType)
new 此class 時可設 encoding type , 後續所產生的 xml 則會依所設定 encoding 產出
|
Modifier and Type | Method and Description |
---|---|
BaseTable |
convertXmltoBaseTable(java.io.File infile) |
static java.lang.String |
getBasetabletoXmlString(BaseTable[] theTable)
BaseTable array 轉成 XML 格式
XML encoding = BIG5
|
static java.lang.String |
getBasetabletoXmlString(BaseTable[] theTable,
boolean inshowrownode)
是否顯示
|
static java.lang.String |
getBasetabletoXmlString(BaseTable[] theTable,
boolean isshowrownode,
boolean isencoding,
boolean isshowrootnode) |
static java.lang.String |
getBasetabletoXmlString(BaseTable[] theTable,
java.lang.String incodeing)
加incoding
|
static java.lang.String |
getConvertBaseTableTOXml(BaseTable theTable,
boolean isencoding) |
static java.lang.String |
getConvertBaseTableTOXml(BaseTable theTable,
boolean isencoding,
boolean istaguppercase)
xml tag 是否均轉換成大寫
|
static java.lang.String |
getConvertBaseTableTOXml(BaseTable theTable,
boolean isencoding,
int level) |
static java.lang.String |
getConvertBaseTableTOXml(BaseTable theTable,
boolean isencoding,
int level,
boolean istaguppercase) |
static BaseTable |
getConvertXmlTOBaseTable(java.io.File infile) |
static BaseTable |
getConvertXmlTOBaseTable(java.lang.String xmlString) |
static java.lang.String |
getenCodingType() |
static BaseTable |
getNodeTOBaseTable(BaseTable curBaseTable,
org.w3c.dom.Node s) |
static void |
setenCodingType(java.lang.String incodeingtype)
設定 XML encodeingtype
|
public BaseTableConvertXMLUtility(java.lang.String encodingType)
encodingType
- public static java.lang.String getBasetabletoXmlString(BaseTable[] theTable, boolean isshowrownode, boolean isencoding, boolean isshowrootnode)
rootXMLheading
- theTable
- isencoding
- //是否給
public static java.lang.String getConvertBaseTableTOXml(BaseTable theTable, boolean isencoding)
public static java.lang.String getConvertBaseTableTOXml(BaseTable theTable, boolean isencoding, boolean istaguppercase)
theTable
- isencoding
- istaguppercase
- public static java.lang.String getConvertBaseTableTOXml(BaseTable theTable, boolean isencoding, int level, boolean istaguppercase)
public static java.lang.String getConvertBaseTableTOXml(BaseTable theTable, boolean isencoding, int level)
public static BaseTable getConvertXmlTOBaseTable(java.io.File infile) throws java.lang.Exception
java.lang.Exception
public static BaseTable getConvertXmlTOBaseTable(java.lang.String xmlString) throws java.lang.Exception
java.lang.Exception
public static BaseTable getNodeTOBaseTable(BaseTable curBaseTable, org.w3c.dom.Node s)
public static java.lang.String getBasetabletoXmlString(BaseTable[] theTable)
theTable
- BaseTable[]public static java.lang.String getBasetabletoXmlString(BaseTable[] theTable, java.lang.String incodeing)
theTable
- incodeing
- public static java.lang.String getBasetabletoXmlString(BaseTable[] theTable, boolean inshowrownode)
theTable
- inshowrownode
- public BaseTable convertXmltoBaseTable(java.io.File infile) throws java.lang.Exception
java.lang.Exception
public static void setenCodingType(java.lang.String incodeingtype)
incodeingtype
- public static java.lang.String getenCodingType()