TC Java
2011 Version

gov.nih.nlm.nls.tc.Util
Class Str

java.lang.Object
  extended by gov.nih.nlm.nls.tc.Util.Str

public class Str
extends java.lang.Object

This class provides methods of string related operations.

History:

Version:
V-2011
Author:
NLM Lexical Systems group

Field Summary
static java.lang.String FIELD_SEP
           
static java.lang.String FILE_SEP
           
static java.lang.String LINE_SEP
           
 
Constructor Summary
Str()
           
 
Method Summary
static java.lang.String Replace(java.lang.String inStr, java.lang.String source, java.lang.String target)
          Replace a source subString with a target string in an input string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FIELD_SEP

public static final java.lang.String FIELD_SEP
See Also:
Constant Field Values

LINE_SEP

public static final java.lang.String LINE_SEP

FILE_SEP

public static final java.lang.String FILE_SEP
Constructor Detail

Str

public Str()
Method Detail

Replace

public static java.lang.String Replace(java.lang.String inStr,
                                       java.lang.String source,
                                       java.lang.String target)
Replace a source subString with a target string in an input string.

Parameters:
inStr - the input base string which will be changed.
source - the source pattern string which will be changed from.
target - the target pattern string which will be changed to.
Returns:
a string with changed pattern string from inStr.

TC Java
2011 Version

Submit a bug or feature

Copyright © 2011 National Library of Medicine