harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r381977 - in /incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java: io/Flushable.java lang/Iterable.java
Date Wed, 01 Mar 2006 10:32:27 GMT
Author: tellison
Date: Wed Mar  1 02:32:25 2006
New Revision: 381977

URL: http://svn.apache.org/viewcvs?rev=381977&view=rev
Log:
Apply HARMONY-143 ([classlib][luni] Additional Java 5 interfaces for LUNI: Iterable and Flushable)

Added:
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/io/Flushable.java
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Iterable.java

Added: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/io/Flushable.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/io/Flushable.java?rev=381977&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/io/Flushable.java
(added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/io/Flushable.java
Wed Mar  1 02:32:25 2006
@@ -0,0 +1,35 @@
+/* Copyright 2006 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package java.io;
+
+/**
+ * <p>
+ * Indicates that an output object can be flushed.
+ * </p>
+ * 
+ * @since 1.5
+ */
+public interface Flushable {
+    /**
+     * <p>
+     * Flushes the object by writing out any buffered data to the underlying
+     * output.
+     * </p>
+     * 
+     * @throws IOException if there are any issues writing the data.
+     */
+    void flush() throws IOException;
+}

Added: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Iterable.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Iterable.java?rev=381977&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Iterable.java
(added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Iterable.java
Wed Mar  1 02:32:25 2006
@@ -0,0 +1,33 @@
+/* Copyright 2006 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package java.lang;
+
+import java.util.Iterator;
+
+/**
+ * <p>Implementations of this interface can be used within a <code>foreach</code>
+ * statement.</p>
+ * @since 1.5
+ */
+public interface Iterable /*<T>*/ {
+    //TODO Add generic declarations
+    /**
+     * <p>Returns an {@link Iterator} for the elements in this object.</p>
+     * 
+     * @return An <code>Iterator</code> instance.
+     */
+    Iterator /*<T>*/ iterator();
+}



Mime
View raw message