commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r884088 - /commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/io/Pipe.java
Date Wed, 25 Nov 2009 13:21:31 GMT
Author: mturk
Date: Wed Nov 25 13:21:30 2009
New Revision: 884088

URL: http://svn.apache.org/viewvc?rev=884088&view=rev
Log:
Provide methods for bot getting both descriptors

Modified:
    commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/io/Pipe.java

Modified: commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/io/Pipe.java
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/io/Pipe.java?rev=884088&r1=884087&r2=884088&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/io/Pipe.java (original)
+++ commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/io/Pipe.java Wed
Nov 25 13:21:30 2009
@@ -82,15 +82,27 @@
     }
 
     /**
-     * Return the {@link Descriptor} accosicated with this pipe.
+     * Return the {@link Descriptor} accosicated with this pipe
+     * read end.
      *
      * @return pipe's Descriptor object
      */
-    public Descriptor fd()
+    public Descriptor rd()
     {
         return rd;
     }
 
+    /**
+     * Return the {@link Descriptor} accosicated with this pipe
+     * write end.
+     *
+     * @return pipe's Descriptor object
+     */
+    public Descriptor wr()
+    {
+        return wr;
+    }
+
     public static native Pipe create0(int mode)
         throws IOException;
     /**



Mime
View raw message