|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface POSIXHandler
The POSIXHandler class allows you do implement the runtime-specific behavior you need in such a way that it is insulated from the implementation of the POSIX library. Implementing each of the methods in this interface should give you are working POSIX implementation.
Nested Class Summary | |
---|---|
static class |
POSIXHandler.WARNING_ID
|
Method Summary | |
---|---|
void |
error(jnr.constants.platform.Errno error,
String extraData)
|
void |
error(jnr.constants.platform.Errno error,
String methodName,
String extraData)
|
File |
getCurrentWorkingDirectory()
Get current working directory of your runtime. |
String[] |
getEnv()
Get current set of environment variables of your runtime. |
PrintStream |
getErrorStream()
Get your runtime's current ErrorStream |
InputStream |
getInputStream()
Get your runtime's current InputStream |
PrintStream |
getOutputStream()
Get your runtime's current OutputStream |
int |
getPID()
Get your runtimes process ID. |
boolean |
isVerbose()
Should we provide verbose output about POSIX activities |
void |
unimplementedError(String methodName)
Specify that posix method is unimplemented. |
void |
warn(POSIXHandler.WARNING_ID id,
String message,
Object... data)
|
Method Detail |
---|
void error(jnr.constants.platform.Errno error, String extraData)
void error(jnr.constants.platform.Errno error, String methodName, String extraData)
void unimplementedError(String methodName)
void warn(POSIXHandler.WARNING_ID id, String message, Object... data)
boolean isVerbose()
File getCurrentWorkingDirectory()
String[] getEnv()
InputStream getInputStream()
PrintStream getOutputStream()
int getPID()
PrintStream getErrorStream()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |