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/06/29 08:32:42 UTC
svn commit: r789227 -
/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Descriptor.java
Author: mturk
Date: Mon Jun 29 06:32:42 2009
New Revision: 789227
URL: http://svn.apache.org/viewvc?rev=789227&view=rev
Log:
Add Descriptor.getFlags method
Modified:
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Descriptor.java
Modified: commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Descriptor.java
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Descriptor.java?rev=789227&r1=789226&r2=789227&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Descriptor.java (original)
+++ commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Descriptor.java Mon Jun 29 06:32:42 2009
@@ -160,6 +160,16 @@
}
/**
+ * Get the descriptory flags.
+ * This method is public, but it is intended for the internal use only.
+ */
+ public final int getFlags()
+ {
+ // Upper 24 bits are flags.
+ return (IDFLAGS >>> 8);
+ }
+
+ /**
* Check if the underlying Operating system descriptor is closed.
* @return {@code true} if descriptor is closed {@code false} otherwise.
*/