xbn.string
Class TALConfig

java.lang.Object
  |
  +--xbn.XBNObject
        |
        +--xbn.string.TALConfig

public class TALConfig
extends XBNObject

Configuration regarding TrimChars.trimAllLines. See TrimChars.trimAllLines. This object is provided directly to the TrimChars constructor

Source code:  TALConfig.java


Fields inherited from class xbn.XBNObject
bFALSE_IN_PRODUCTION, bTRUE_IN_PRODUCTION, sCNSTR, sES, sLINE_SEP
 
Constructor Summary
TALConfig()
          Create a TALConfig with default settings.
TALConfig(boolean b_trimLeft, boolean b_trimRight)
          Create a TALConfig.
TALConfig(String s_lineSep)
          Create a TALConfig.
TALConfig(String s_lineSep, boolean b_trimLeft, boolean b_trimRight)
          Create a TALConfig.
 
Method Summary
 boolean doTrimLeft()
          Should characters be trimmed off the left side of each line?
 boolean doTrimRight()
          Should characters be trimmed off the right side of each line?
 String getLineSeparator()
          Get the line separator.
 
Methods inherited from class xbn.XBNObject
getXMsgPrefix, sop, sopl, sopl, throwAX, throwAXIfBadStr, throwAXIfNull, throwAXSpoof
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TALConfig

public TALConfig()

Create a TALConfig with default settings.

Equal to TALConfig(sLINE_SEP)


TALConfig

public TALConfig(String s_lineSep)

Create a TALConfig.

Equal to TALConfig(s_lineSep, true, true)


TALConfig

public TALConfig(boolean b_trimLeft,
                 boolean b_trimRight)

Create a TALConfig.

Equal to TALConfig(sLINE_SEP, b_trimLeft, b_trimRight)


TALConfig

public TALConfig(String s_lineSep,
                 boolean b_trimLeft,
                 boolean b_trimRight)

Create a TALConfig.

Parameters:
s_lineSep - Defines the line separator. May not be null or zero characters in length, and may not contain any characters existing in ac_toTrim (as provided to the TrimChars constructor.
b_trimLeft - When true, then the left side of each line should be trimmed. If false, the the left side is left alone. See doTrimLeft.
b_trimRight - When true, then the right side of each line should be trimmed. If false, the the right side is left alone. See doTrimRight.
Method Detail

getLineSeparator

public final String getLineSeparator()

Get the line separator.

Returns:
s_lineSep Exactly as provided to the constructor.

doTrimLeft

public final boolean doTrimLeft()

Should characters be trimmed off the left side of each line?

Returns:
b_trimLeft Exactly as provided to the constructor.

doTrimRight

public final boolean doTrimRight()

Should characters be trimmed off the right side of each line?

Returns:
b_trimRight Exactly as provided to the constructor.



Copyright 1997-2003, Jeff Epstein, All Rights Reserved. See top of source code files for copyright notice.

 

http://sourceforge.net/projects/xbnjava

 

SourceForge.net Logo