harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r546281 - /harmony/enhanced/classlib/branches/java6/modules/luni/src/main/java/java/util/Scanner.java
Date Mon, 11 Jun 2007 20:58:33 GMT
Author: tellison
Date: Mon Jun 11 13:58:32 2007
New Revision: 546281

URL: http://svn.apache.org/viewvc?view=rev&rev=546281
Log:
Apply patch HARMONY-4127 ([classlib][luni][java6] the new method "reset()" in java.util.Scanner
for java6)

Modified:
    harmony/enhanced/classlib/branches/java6/modules/luni/src/main/java/java/util/Scanner.java

Modified: harmony/enhanced/classlib/branches/java6/modules/luni/src/main/java/java/util/Scanner.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/luni/src/main/java/java/util/Scanner.java?view=diff&rev=546281&r1=546280&r2=546281
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/luni/src/main/java/java/util/Scanner.java
(original)
+++ harmony/enhanced/classlib/branches/java6/modules/luni/src/main/java/java/util/Scanner.java
Mon Jun 11 13:58:32 2007
@@ -2287,4 +2287,17 @@
         buffer.position(oldPosition);
         buffer.limit(oldLimit);
     }
+
+    /**
+     * Discards all state information and resets this scanner.
+     * 
+     * @return this scanner
+     * @since 1.6
+     */
+    public Scanner reset(){
+        delimiter = DEFAULT_DELIMITER;
+        locale = Locale.getDefault();
+        integerRadix = 10;
+        return this;
+    }
 }



Mime
View raw message