Format, the fixed-width format defines:
e.g. if a field has a length of 5 characters, but the value is 'ZZ', the field should contain [ZZ ] (i.e. ZZ followed by 3 unwritten spaces).
If the padding is set to '_', then the field will be written as [ZZ___]
com.univocity.parsers.common.Format
| Modifier and Type | Field and Description |
|---|---|
| private char | |
| private char |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final FixedWidthFormat | clone()
Overrides com. |
| protected TreeMap | |
| public char | Returns: the wildcard character to be used in lookahead/behind patterns.Returns the lookup wildcard character to accept any character in look-ahead or look-behind patterns defined
using |
| public char | Returns: the padding characterReturns the padding character used to represent unwritten spaces. |
| public boolean | Returns: true if the given character is the padding character, false otherwisethe character to be verified padding)Identifies whether or not a given character represents a padding character |
| public void | setLookupWildcard(char
the wildcard character to be used in lookahead/behind patterns. lookupWildcard)Defines the lookup wildcard character to accept any character in look-ahead or look-behind patterns defined
using |
| public void | setPadding(char
the padding character padding)Defines the padding character used to represent unwritten spaces. |
| lookupWildcard | back to summary |
|---|---|
| private char lookupWildcard | |
| padding | back to summary |
|---|---|
| private char padding | |
| FixedWidthFormat | back to summary |
|---|---|
| public FixedWidthFormat() | |
| clone | back to summary |
|---|---|
| public final FixedWidthFormat clone() Overrides com. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by
| |
| getConfiguration | back to summary |
|---|---|
| protected TreeMap Implements abstract com.
| |
| getLookupWildcard | back to summary |
|---|---|
| public char getLookupWildcard() Returns the lookup wildcard character to accept any character in look-ahead or look-behind patterns defined
using
| |
| getPadding | back to summary |
|---|---|
| public char getPadding() Returns the padding character used to represent unwritten spaces. Defaults to ' '
| |
| isPadding | back to summary |
|---|---|
| public boolean isPadding(char padding) Identifies whether or not a given character represents a padding character
| |
| setLookupWildcard | back to summary |
|---|---|
| public void setLookupWildcard(char lookupWildcard) Defines the lookup wildcard character to accept any character in look-ahead or look-behind patterns defined
using
| |
| setPadding | back to summary |
|---|---|
| public void setPadding(char padding) Defines the padding character used to represent unwritten spaces. Defaults to ' '
| |