geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject cvs commit: incubator-geronimo/modules/common/src/java/org/apache/geronimo/common StringValueParser.java
Date Mon, 25 Aug 2003 20:46:45 GMT
jdillon     2003/08/25 13:46:45

  Modified:    modules/common/src/java/org/apache/geronimo/common
                        StringValueParser.java
  Log:
   o Added parse() variant to trim results
  
  Revision  Changes    Path
  1.2       +11 -1     incubator-geronimo/modules/common/src/java/org/apache/geronimo/common/StringValueParser.java
  
  Index: StringValueParser.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/common/src/java/org/apache/geronimo/common/StringValueParser.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- StringValueParser.java	24 Aug 2003 20:13:22 -0000	1.1
  +++ StringValueParser.java	25 Aug 2003 20:46:45 -0000	1.2
  @@ -218,4 +218,14 @@
           
           return buff.toString();
       }
  +    
  +    public String parse(final String input, final boolean trim)
  +    {
  +        String output = parse(input);
  +        if (trim && output != null) {
  +            output = output.trim();
  +        }
  +        
  +        return output;
  +    }
   }
  
  
  

Mime
View raw message