|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface KProcessSignals
Method Summary | |
---|---|
void |
processExited(KProcess proc)
Emitted after the process has terminated when the process was run in the NotifyOnExit (==default option to
start() ) or the Block mode. |
void |
receivedStderr(KProcess proc,
java.lang.String buffer,
int buflen)
Emitted, when output from the child process has been received on stderr. |
void |
receivedStdout(int fd,
int[] len)
Emitted when output from the child process has been received on stdout. |
void |
receivedStdout(KProcess proc,
java.lang.String buffer,
int buflen)
Emitted, when output from the child process has been received on stdout. |
void |
wroteStdin(KProcess proc)
Emitted after all the data that has been specified by a prior call to writeStdin() has actually been written to the child process. |
Method Detail |
---|
void processExited(KProcess proc)
NotifyOnExit
(==default option to
start() ) or the Block mode.
proc
- a pointer to the process that has exitedvoid receivedStdout(KProcess proc, java.lang.String buffer, int buflen)
proc
- a pointer to the process that has received the outputbuffer
- The data received.buflen
- The number of bytes that are available.
You should copy the information contained in buffer
to your private
data structures before returning from the slot.
Example:
String myBuf = String.fromLatin1(buffer, buflen);
void receivedStdout(int fd, int[] len)
fd.
fd
- the file descriptor that provides the datalen
- the number of bytes that have been read from fd
must
be written herevoid receivedStderr(KProcess proc, java.lang.String buffer, int buflen)
buffer
to your private
data structures before returning from the slot.
proc
- a pointer to the process that has received the databuffer
- The data received.buflen
- The number of bytes that are available.void wroteStdin(KProcess proc)
proc
- a pointer to the process
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |