public class CSVInput extends Object implements Serializable, Cloneable
InputSerialization
,
Serialized FormConstructor and Description |
---|
CSVInput() |
Modifier and Type | Method and Description |
---|---|
CSVInput |
clone() |
boolean |
equals(Object obj) |
Boolean |
getAllowQuotedRecordDelimiter() |
Character |
getComments() |
String |
getCommentsAsString() |
Character |
getFieldDelimiter() |
String |
getFieldDelimiterAsString() |
String |
getFileHeaderInfo() |
Character |
getQuoteCharacter() |
String |
getQuoteCharacterAsString() |
Character |
getQuoteEscapeCharacter() |
String |
getQuoteEscapeCharacterAsString() |
Character |
getRecordDelimiter() |
String |
getRecordDelimiterAsString() |
int |
hashCode() |
void |
setAllowQuotedRecordDelimiter(Boolean allowQuotedRecordDelimiter)
Sets the value used to allow quoted record delimiters to occur within the input.
|
void |
setComments(Character comments)
Sets the character used to indicate a row should be ignored when present at the start of a row.
|
void |
setComments(String comments)
Sets the character used to indicate a row should be ignored when present at the start of a row.
|
void |
setFieldDelimiter(Character fieldDelimiter)
Sets the value used to separate individual fields in a record.
|
void |
setFieldDelimiter(String fieldDelimiter)
Sets the value used to separate individual fields in a record.
|
void |
setFileHeaderInfo(FileHeaderInfo fileHeaderInfo)
Sets the first line of input.
|
void |
setFileHeaderInfo(String fileHeaderInfo)
Sets the first line of input.
|
void |
setQuoteCharacter(Character quoteCharacter)
Sets the value used for escaping where the field delimiter is part of the value.
|
void |
setQuoteCharacter(String quoteCharacter)
Sets the value used for escaping where the field delimiter is part of the value.
|
void |
setQuoteEscapeCharacter(Character quoteEscapeCharacter)
Sets the character used for escaping the quote character inside an already escaped value.
|
void |
setQuoteEscapeCharacter(String quoteEscapeCharacter)
Sets the character used for escaping the quote character inside an already escaped value.
|
void |
setRecordDelimiter(Character recordDelimiter)
Sets the value used to separate individual records.
|
void |
setRecordDelimiter(String recordDelimiter)
Sets the value used to separate individual records.
|
String |
toString() |
CSVInput |
withAllowQuotedRecordDelimiter(Boolean allowQuotedRecordDelimiter)
Sets the value used to allow quoted record delimiters to occur within the input.
|
CSVInput |
withComments(Character comments)
Sets the Single character used to indicate a row should be ignored when present at the start of a row.
|
CSVInput |
withComments(String comments)
Sets the character used to indicate a row should be ignored when present at the start of a row.
|
CSVInput |
withFieldDelimiter(Character fieldDelimiter)
Sets the value used to separate individual fields in a record.
|
CSVInput |
withFieldDelimiter(String fieldDelimiter)
Sets the value used to separate individual fields in a record.
|
CSVInput |
withFileHeaderInfo(FileHeaderInfo fileHeaderInfo)
Sets the fileHeaderInfo
|
CSVInput |
withFileHeaderInfo(String fileHeaderInfo)
Sets the fileHeaderInfo
|
CSVInput |
withQuoteCharacter(Character quoteCharacter)
Sets the value used for escaping where the field delimiter is part of the value.
|
CSVInput |
withQuoteCharacter(String quoteCharacter)
Sets the value used for escaping where the field delimiter is part of the value.
|
CSVInput |
withQuoteEscapeCharacter(Character quoteEscapeCharacter)
Sets the character used for escaping the quote character inside an already escaped value.
|
CSVInput |
withQuoteEscapeCharacter(String quoteEscapeCharacter)
Sets the character used for escaping the quote character inside an already escaped value.
|
CSVInput |
withRecordDelimiter(Character recordDelimiter)
Sets the value used to separate individual records.
|
CSVInput |
withRecordDelimiter(String recordDelimiter)
Sets the value used to separate individual records.
|
public String getFileHeaderInfo()
public void setFileHeaderInfo(String fileHeaderInfo)
fileHeaderInfo
- New file header info valuepublic CSVInput withFileHeaderInfo(String fileHeaderInfo)
fileHeaderInfo
- The new fileHeaderInfo value.public void setFileHeaderInfo(FileHeaderInfo fileHeaderInfo)
fileHeaderInfo
- New file header info valuepublic CSVInput withFileHeaderInfo(FileHeaderInfo fileHeaderInfo)
fileHeaderInfo
- The new fileHeaderInfo value.public Character getComments()
setComments(String)
, this will return the first character in the string.to retrieve the full value.
public String getCommentsAsString()
public void setComments(String comments)
comments
- New comments valuepublic CSVInput withComments(String comments)
comments
- The new comments value.public void setComments(Character comments)
comments
- New comments valuepublic CSVInput withComments(Character comments)
comments
- The new comments value.public Character getQuoteEscapeCharacter()
setQuoteEscapeCharacter(String)
, this will return the first character in the string.to retrieve the full value.
public String getQuoteEscapeCharacterAsString()
public void setQuoteEscapeCharacter(String quoteEscapeCharacter)
quoteEscapeCharacter
- New quoteEscapeCharacter valuepublic CSVInput withQuoteEscapeCharacter(String quoteEscapeCharacter)
quoteEscapeCharacter
- The new quoteEscapeCharacter value.public void setQuoteEscapeCharacter(Character quoteEscapeCharacter)
quoteEscapeCharacter
- New quoteEscapeCharacter valuepublic CSVInput withQuoteEscapeCharacter(Character quoteEscapeCharacter)
quoteEscapeCharacter
- The new quoteEscapeCharacter value.public Character getRecordDelimiter()
setRecordDelimiter(String)
,
this will return the first character in the string.to retrieve the value.
public String getRecordDelimiterAsString()
public void setRecordDelimiter(String recordDelimiter)
recordDelimiter
- New recordDelimiter valuepublic CSVInput withRecordDelimiter(String recordDelimiter)
recordDelimiter
- The new recordDelimiter value.public void setRecordDelimiter(Character recordDelimiter)
recordDelimiter
- New recordDelimiter valuepublic CSVInput withRecordDelimiter(Character recordDelimiter)
recordDelimiter
- The new recordDelimiter value.public Character getFieldDelimiter()
setFieldDelimiter(String)
,
this will return the first character in the string.to retrieve the value.
public String getFieldDelimiterAsString()
public void setFieldDelimiter(String fieldDelimiter)
fieldDelimiter
- New fieldDelimiter valuepublic CSVInput withFieldDelimiter(String fieldDelimiter)
fieldDelimiter
- The new fieldDelimiter value.public void setFieldDelimiter(Character fieldDelimiter)
fieldDelimiter
- New fieldDelimiter valuepublic CSVInput withFieldDelimiter(Character fieldDelimiter)
fieldDelimiter
- The new fieldDelimiter value.public Character getQuoteCharacter()
setQuoteCharacter(String)
, this will return the first character in the string.to retrieve the value.
public String getQuoteCharacterAsString()
public void setQuoteCharacter(String quoteCharacter)
quoteCharacter
- New quoteCharacter valuepublic CSVInput withQuoteCharacter(String quoteCharacter)
quoteCharacter
- The new quoteCharacter value.public void setQuoteCharacter(Character quoteCharacter)
quoteCharacter
- New quoteCharacter valuepublic CSVInput withQuoteCharacter(Character quoteCharacter)
quoteCharacter
- The new quoteCharacter value.public Boolean getAllowQuotedRecordDelimiter()
public void setAllowQuotedRecordDelimiter(Boolean allowQuotedRecordDelimiter)
allowQuotedRecordDelimiter
- New allowQuotedRecordDelimiter value.public CSVInput withAllowQuotedRecordDelimiter(Boolean allowQuotedRecordDelimiter)
allowQuotedRecordDelimiter
- New allowQuotedRecordDelimiter value.Copyright © 2020. All rights reserved.