|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.catacombae.jfuse.util.FUSEUtil
public class FUSEUtil
Constructor Summary | |
---|---|
FUSEUtil()
|
Method Summary | |
---|---|
static String |
basename(String path)
Returns the last component of a pathname, just like the unix utility 'basename'. |
static String |
decodeUTF8(byte[] utf8Data)
Convenience method for decoding a UTF-8 byte array into a Java String . |
static String |
decodeUTF8(ByteBuffer utf8Data)
Convenience method for decoding a UTF-8 ByteBuffer into a Java String . |
static String |
dirname(String path)
Returns the directory component of a pathname, just like the unix utility 'dirname'. |
static byte[] |
encodeUTF8(String str)
Convenience method for encoding a UTF-8 byte string from a Java String . |
static long |
getProcessGid()
Returns the gid of the running Java process. |
static long |
getProcessPid()
Returns the pid of the running Java process. |
static long |
getProcessUid()
Returns the uid of the running Java process. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FUSEUtil()
Method Detail |
---|
public static byte[] encodeUTF8(String str)
String
.
str
- the string to encode.
public static String decodeUTF8(byte[] utf8Data)
String
.
utf8Data
- the UTF-8 encoded string.
String
containing the contents of 'utf8Data'.public static String decodeUTF8(ByteBuffer utf8Data)
String
.
utf8Data
- the UTF-8 encoded string.
String
containing the contents of 'utf8Data'.public static String dirname(String path)
path
- the pathname to process. For example "/a/b/c".
public static String basename(String path)
path
- the pathname to process. For example "/a/b/c".
public static long getProcessUid()
public static long getProcessGid()
public static long getProcessPid()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |