axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject cvs commit: ws-axis/java/src/org/apache/axis/client AdminClient.java
Date Tue, 15 Feb 2005 09:36:37 GMT
toshi       2005/02/15 01:36:37

  Modified:    java/src/org/apache/axis/client AdminClient.java
  Log:
  Clean up to remain independent from the commons-lang code.
  Feel free to add a patch, if it's not much to look at.
  
  Revision  Changes    Path
  1.88      +1 -32     ws-axis/java/src/org/apache/axis/client/AdminClient.java
  
  Index: AdminClient.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/client/AdminClient.java,v
  retrieving revision 1.87
  retrieving revision 1.88
  diff -u -r1.87 -r1.88
  --- AdminClient.java	14 Feb 2005 13:17:13 -0000	1.87
  +++ AdminClient.java	15 Feb 2005 09:36:37 -0000	1.88
  @@ -450,37 +450,6 @@
       }
   
       /**
  -     * Unescape the specified String.
  -     * @param message - to unescape String
  -     * @return unescaped message
  -     */
  -    public String unescape(String message) {
  -        StringBuffer buf = new StringBuffer();
  -
  -        int length = message.length();
  -        char character;
  -        for (int i = 0; i < length; i++) {
  -            character = message.charAt( i );
  -            if (character == '&') {
  -                if (i+7 <= length)
  -                if (message.charAt(i+1)=='#' && message.charAt(i+2)=='x' &&
  -                                                message.charAt(i+7)==';') {
  -                    buf.append("\\u");
  -                    buf.append(message.charAt(i+3));
  -                    buf.append(message.charAt(i+4));
  -                    buf.append(message.charAt(i+5));
  -                    buf.append(message.charAt(i+6));
  -                    i+=7;
  -                }
  -            } else {
  -                buf.append(character);
  -            }
  -        }
  -
  -        return StringUtils.unescapeJava(buf.toString());
  -    }
  -
  -    /**
        * Creates in instance of <code>AdminClient</code> and
        * invokes <code>process(args)</code>.
        * <p>Diagnostic output goes to <code>log.info</code>.</p>
  @@ -493,7 +462,7 @@
   
               String result = admin.process(args);
               if (result != null) {
  -                System.out.println( admin.unescape(result) );
  +                System.out.println( StringUtils.unescapeNumericChar(result) );
               } else {
                   System.exit(1);
               }
  
  
  

Mime
View raw message