pipe-io-server/pipe_io_server/clients/java/PipeIO.java
2019-08-05 17:38:29 +02:00

18 lines
405 B
Java

import java.io.IOException;
public class PipeIO implements AutoCloseable {
public PipeReader reader;
public PipeWriter writer;
public PipeIO(String in_pipe_path, String out_pipe_path) {
this.reader = new PipeReader(in_pipe_path);
this.writer = new PipeWriter(out_pipe_path);
}
public void close() {
this.reader.close();
this.writer.close();
}
}