// Copyright © 2011-2012, Esko Luontola <www.orfjackal.net>
// This software is released under the Apache License 2.0.
// The license text is at http://www.apache.org/licenses/LICENSE-2.0
package fi.jumi.launcher;
import java.io.*;
public class FakeProcess extends Process {
public ByteArrayInputStream inputStream = new ByteArrayInputStream(new byte[0]);
public ByteArrayInputStream errorStream = new ByteArrayInputStream(new byte[0]);
public ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
@Override
public OutputStream getOutputStream() {
return outputStream;
}
@Override
public InputStream getInputStream() {
return inputStream;
}
@Override
public InputStream getErrorStream() {
return errorStream;
}
@Override
public int waitFor() throws InterruptedException {
return 0;
}
@Override
public int exitValue() {
return 0;
}
@Override
public void destroy() {
}
}