Add overloaded signal(..) method to accept an arbitrary Object value to send to the server.
This commit is contained in:
@@ -220,12 +220,16 @@ public class ProcessWrapper {
|
||||
}
|
||||
|
||||
public void signal() {
|
||||
signal("\n");
|
||||
}
|
||||
|
||||
public void signal(Object value) {
|
||||
|
||||
try {
|
||||
|
||||
OutputStream outputStream = this.process.getOutputStream();
|
||||
|
||||
outputStream.write("\n".getBytes());
|
||||
outputStream.write(String.valueOf(value).getBytes());
|
||||
outputStream.flush();
|
||||
}
|
||||
catch (IOException cause) {
|
||||
@@ -238,7 +242,6 @@ public class ProcessWrapper {
|
||||
}
|
||||
}
|
||||
|
||||
/* (non-Javadoc) */
|
||||
public void signalStop() {
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user