net.sf.jsefa.rbf.lowlevel.config
Class RbfLowLevelConfiguration

java.lang.Object
  extended by net.sf.jsefa.common.lowlevel.config.LowLevelConfiguration
      extended by net.sf.jsefa.rbf.lowlevel.config.RbfLowLevelConfiguration
Direct Known Subclasses:
CsvLowLevelConfiguration, FlrLowLevelConfiguration

public abstract class RbfLowLevelConfiguration
extends LowLevelConfiguration

The abstract superclass for RBF type low level configuration classes.

Author:
Norman Lahme-Huetig

Nested Class Summary
static interface RbfLowLevelConfiguration.Defaults
          Set of default configuration values.
 
Constructor Summary
  RbfLowLevelConfiguration()
          Constructs a new RbfLowLevelConfiguration.
protected RbfLowLevelConfiguration(RbfLowLevelConfiguration other)
          Constructs a new RbfLowLevelConfiguration as a copy of the given one.
 
Method Summary
 LineFilter getLineFilter()
          Returns the line filter used to filter lines from an input stream.
 Integer getLineFilterLimit()
          Returns the maximum number of characters to read from a line for passing it to a LineFilter.
 Character getSpecialRecordDelimiter()
           
 void setLineFilter(LineFilter lineFilter)
          Sets the line filter to use for filtering lines from an input stream.
 void setLineFilterLimit(Integer lineFilterLimit)
          Sets the maximum number of characters to read from a line for passing it to a LineFilter.
 void setSpecialRecordDelimiter(Character delimiter)
          Sets a special record delimiter.
 
Methods inherited from class net.sf.jsefa.common.lowlevel.config.LowLevelConfiguration
createCopy, getLineBreak, setLineBreak
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RbfLowLevelConfiguration

public RbfLowLevelConfiguration()
Constructs a new RbfLowLevelConfiguration.


RbfLowLevelConfiguration

protected RbfLowLevelConfiguration(RbfLowLevelConfiguration other)
Constructs a new RbfLowLevelConfiguration as a copy of the given one.

Parameters:
other - the other config
Method Detail

getLineFilter

public LineFilter getLineFilter()
Returns the line filter used to filter lines from an input stream.

Returns:
the line filter or null

setLineFilter

public void setLineFilter(LineFilter lineFilter)
Sets the line filter to use for filtering lines from an input stream.

Parameters:
lineFilter - the line filter

getSpecialRecordDelimiter

public Character getSpecialRecordDelimiter()
Returns:
the special record delimiter or null if none exists

setSpecialRecordDelimiter

public void setSpecialRecordDelimiter(Character delimiter)
Sets a special record delimiter.

Parameters:
delimiter - the delimiter

getLineFilterLimit

public Integer getLineFilterLimit()
Returns the maximum number of characters to read from a line for passing it to a LineFilter.

This limit is only used if a special record delimiter is set.

Returns:
the maximum number of characters to read from a line for passing it to a LineFilter.

setLineFilterLimit

public void setLineFilterLimit(Integer lineFilterLimit)
Sets the maximum number of characters to read from a line for passing it to a LineFilter.

This limit is only used if a special record delimiter is set.

Parameters:
lineFilterLimit - the maximum number of characters to read


Copyright © 2014. All rights reserved.