You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2009/11/25 14:21:31 UTC
svn commit: r884088 -
/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/io/Pipe.java
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;
/**