Class TextImportSettings
java.lang.Object
com.independentsoft.office.spreadsheet.connections.TextImportSettings
The Class TextImportSettings.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()intGets the code page.Gets the decimal separator.Gets the delimiter.Gets the file type.intGets the first row.Gets the qualifier.Gets the source file name.Gets the text fields.Gets the thousands separator.booleanChecks if is comma delimiter.booleanChecks if is consecutive.booleanChecks if is file delimited.booleanChecks if is prompt for file name.booleanChecks if is semicolon delimiter.booleanChecks if is space delimiter.booleanChecks if is tab delimiter.voidsetCodePage(int codePage)Sets the code page.voidsetCommaDelimiter(boolean isCommaDelimiter)Sets the comma delimiter.voidsetConsecutive(boolean consecutive)Sets the consecutive.voidsetDecimalSeparator(String decimalSeparator)Sets the decimal separator.voidsetDelimiter(String delimiter)Sets the delimiter.voidsetFileDelimited(boolean isFileDelimited)Sets the file delimited.voidsetFileType(FileType fileType)Sets the file type.voidsetFirstRow(int firstRow)Sets the first row.voidsetPromptForFileName(boolean promptForFileName)Sets the prompt for file name.voidsetQualifier(Qualifier qualifier)Sets the qualifier.voidsetSemicolonDelimiter(boolean isSemicolonDelimiter)Sets the semicolon delimiter.voidsetSourceFileName(String sourceFileName)Sets the source file name.voidsetSpaceDelimiter(boolean isSpaceDelimiter)Sets the space delimiter.voidsetTabDelimiter(boolean isTabDelimiter)Sets the tab delimiter.voidsetThousandsSeparator(String thousandsSeparator)Sets the thousands separator.toString()
-
Constructor Details
-
TextImportSettings
public TextImportSettings()Instantiates a new text import settings.
-
-
Method Details
-
clone
-
toString
-
getTextFields
Gets the text fields.- Returns:
- the text fields
-
getCodePage
public int getCodePage()Gets the code page.- Returns:
- the code page
-
setCodePage
public void setCodePage(int codePage)Sets the code page.- Parameters:
codePage- the new code page
-
isCommaDelimiter
public boolean isCommaDelimiter()Checks if is comma delimiter.- Returns:
- true, if is comma delimiter
-
setCommaDelimiter
public void setCommaDelimiter(boolean isCommaDelimiter)Sets the comma delimiter.- Parameters:
isCommaDelimiter- the new comma delimiter
-
isConsecutive
public boolean isConsecutive()Checks if is consecutive.- Returns:
- true, if is consecutive
-
setConsecutive
public void setConsecutive(boolean consecutive)Sets the consecutive.- Parameters:
consecutive- the new consecutive
-
getDecimalSeparator
Gets the decimal separator.- Returns:
- the decimal separator
-
setDecimalSeparator
Sets the decimal separator.- Parameters:
decimalSeparator- the new decimal separator
-
isFileDelimited
public boolean isFileDelimited()Checks if is file delimited.- Returns:
- true, if is file delimited
-
setFileDelimited
public void setFileDelimited(boolean isFileDelimited)Sets the file delimited.- Parameters:
isFileDelimited- the new file delimited
-
getDelimiter
Gets the delimiter.- Returns:
- the delimiter
-
setDelimiter
Sets the delimiter.- Parameters:
delimiter- the new delimiter
-
getFileType
Gets the file type.- Returns:
- the file type
-
setFileType
Sets the file type.- Parameters:
fileType- the new file type
-
getFirstRow
public int getFirstRow()Gets the first row.- Returns:
- the first row
-
setFirstRow
public void setFirstRow(int firstRow)Sets the first row.- Parameters:
firstRow- the new first row
-
isPromptForFileName
public boolean isPromptForFileName()Checks if is prompt for file name.- Returns:
- true, if is prompt for file name
-
setPromptForFileName
public void setPromptForFileName(boolean promptForFileName)Sets the prompt for file name.- Parameters:
promptForFileName- the new prompt for file name
-
getQualifier
Gets the qualifier.- Returns:
- the qualifier
-
setQualifier
Sets the qualifier.- Parameters:
qualifier- the new qualifier
-
isSemicolonDelimiter
public boolean isSemicolonDelimiter()Checks if is semicolon delimiter.- Returns:
- true, if is semicolon delimiter
-
setSemicolonDelimiter
public void setSemicolonDelimiter(boolean isSemicolonDelimiter)Sets the semicolon delimiter.- Parameters:
isSemicolonDelimiter- the new semicolon delimiter
-
getSourceFileName
Gets the source file name.- Returns:
- the source file name
-
setSourceFileName
Sets the source file name.- Parameters:
sourceFileName- the new source file name
-
isSpaceDelimiter
public boolean isSpaceDelimiter()Checks if is space delimiter.- Returns:
- true, if is space delimiter
-
setSpaceDelimiter
public void setSpaceDelimiter(boolean isSpaceDelimiter)Sets the space delimiter.- Parameters:
isSpaceDelimiter- the new space delimiter
-
isTabDelimiter
public boolean isTabDelimiter()Checks if is tab delimiter.- Returns:
- true, if is tab delimiter
-
setTabDelimiter
public void setTabDelimiter(boolean isTabDelimiter)Sets the tab delimiter.- Parameters:
isTabDelimiter- the new tab delimiter
-
getThousandsSeparator
Gets the thousands separator.- Returns:
- the thousands separator
-
setThousandsSeparator
Sets the thousands separator.- Parameters:
thousandsSeparator- the new thousands separator
-