com.univocity.parsers.fixed
Class FixedWidthFormat

java.lang.Object
  extended by com.univocity.parsers.common.Format
      extended by com.univocity.parsers.fixed.FixedWidthFormat
All Implemented Interfaces:
Cloneable

public class FixedWidthFormat
extends Format

The Fixed-Width format configuration. In addition to the default configuration in Format, the fixed-width format defines:

Author:
uniVocity Software Pty Ltd - parsers@univocity.com
See Also:
Format

Constructor Summary
FixedWidthFormat()
           
 
Method Summary
 FixedWidthFormat clone()
           
protected  TreeMap<String,Object> getConfiguration()
           
 char getPadding()
          Returns the padding character used to represent unwritten spaces.
 boolean isPadding(char padding)
          Identifies whether or not a given character represents a padding character
 void setPadding(char padding)
          Defines the padding character used to represent unwritten spaces.
 
Methods inherited from class com.univocity.parsers.common.Format
getComment, getLineSeparator, getLineSeparatorString, getNormalizedNewline, getSystemLineSeparator, isComment, isNewLine, setComment, setLineSeparator, setLineSeparator, setNormalizedNewline, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FixedWidthFormat

public FixedWidthFormat()
Method Detail

getPadding

public char getPadding()
Returns the padding character used to represent unwritten spaces. Defaults to ' '

Returns:
the padding character

setPadding

public void setPadding(char padding)
Defines the padding character used to represent unwritten spaces. Defaults to ' '

Parameters:
padding - the padding character

isPadding

public boolean isPadding(char padding)
Identifies whether or not a given character represents a padding character

Parameters:
padding - the character to be verified
Returns:
true if the given character is the padding character, false otherwise

getConfiguration

protected TreeMap<String,Object> getConfiguration()
Specified by:
getConfiguration in class Format

clone

public final FixedWidthFormat clone()
Overrides:
clone in class Format


Copyright © 2016 uniVocity Software Pty Ltd. All rights reserved.