public class CsvInfo extends AbstractModel
Constructor and Description |
---|
CsvInfo() |
CsvInfo(CsvInfo source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String |
getDelimiter()
Get 各字段间的分隔符
|
String |
getEscapeChar()
Get 若字段内容中包含分隔符,则使用该转义符包裹改字段,只能填写单引号、双引号、空字符串
|
String[] |
getKeys()
Get 每列key的名字
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getNonExistingField()
Get 对于上面指定的不存在字段使用该内容填充
|
Boolean |
getPrintKey()
Get csv首行是否打印key
|
void |
setDelimiter(String Delimiter)
Set 各字段间的分隔符
|
void |
setEscapeChar(String EscapeChar)
Set 若字段内容中包含分隔符,则使用该转义符包裹改字段,只能填写单引号、双引号、空字符串
|
void |
setKeys(String[] Keys)
Set 每列key的名字
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setNonExistingField(String NonExistingField)
Set 对于上面指定的不存在字段使用该内容填充
|
void |
setPrintKey(Boolean PrintKey)
Set csv首行是否打印key
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public CsvInfo()
public CsvInfo(CsvInfo source)
public Boolean getPrintKey()
public void setPrintKey(Boolean PrintKey)
PrintKey
- csv首行是否打印keypublic String[] getKeys()
public void setKeys(String[] Keys)
Keys
- 每列key的名字
注意:此字段可能返回 null,表示取不到有效值。public String getDelimiter()
public void setDelimiter(String Delimiter)
Delimiter
- 各字段间的分隔符public String getEscapeChar()
public void setEscapeChar(String EscapeChar)
EscapeChar
- 若字段内容中包含分隔符,则使用该转义符包裹改字段,只能填写单引号、双引号、空字符串public String getNonExistingField()
public void setNonExistingField(String NonExistingField)
NonExistingField
- 对于上面指定的不存在字段使用该内容填充Copyright © 2022. All rights reserved.