You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
584 B
26 lines
584 B
package Application;
|
|
|
|
import java.io.InputStream;
|
|
import java.io.PrintStream;
|
|
import java.util.Scanner;
|
|
|
|
public class Cli {
|
|
|
|
private PrintStream printStream;
|
|
private InputStream inputStream;
|
|
private Scanner scanner;
|
|
|
|
public Cli(PrintStream printStream, InputStream inputStream) {
|
|
this.printStream = printStream;
|
|
this.inputStream = inputStream;
|
|
this.scanner = new Scanner(inputStream);
|
|
}
|
|
|
|
public PrintStream getPrintStream() {
|
|
return this.printStream;
|
|
}
|
|
|
|
public Scanner getScanner(){
|
|
return this.scanner;
|
|
}
|
|
}
|