Moved console input/output implementations

Signed-off-by: Emmanuel Bigeon <emmanuel@bigeon.fr>
This commit is contained in:
2018-12-01 10:54:30 -05:00
parent b671474f64
commit c4bbfd8434
17 changed files with 26 additions and 28 deletions

View File

@@ -95,8 +95,8 @@ import net.bigeon.gclc.manager.ConsoleOutput;
* A typical use case is the following:
*
* <pre>
* {@link ConsoleOutput} out = new {@link net.bigeon.gclc.utils.StreamConsoleOutput StreamConsoleOutput}();
* {@link ConsoleInput} in = new {@link net.bigeon.gclc.utils.StreamConsoleInput StreamConsoleInput}();
* {@link ConsoleOutput} out = new {@link net.bigeon.gclc.manager.StreamConsoleOutput StreamConsoleOutput}();
* {@link ConsoleInput} in = new {@link net.bigeon.gclc.manager.StreamConsoleInput StreamConsoleInput}();
* {@link ConsoleApplication} app = new {@link ConsoleApplication}(out, in, "welcome", "see you latter")};
* app.{@link ConsoleApplication#add(ICommand) add}("my_command", new {@link ICommand MyCommand()});
* app.{@link ConsoleApplication#start() start()};

View File

@@ -36,7 +36,7 @@
* gclc-test:net.bigeon.gclc.test.TestConsoleManager.java
* Created on: Nov 18, 2016
*/
package net.bigeon.gclc.utils;
package net.bigeon.gclc.manager;
/*-
* #%L
@@ -78,7 +78,7 @@ import java.io.PrintStream;
import java.nio.charset.StandardCharsets;
import java.util.function.Supplier;
import net.bigeon.gclc.manager.ConsoleInput;
import net.bigeon.gclc.utils.WritingRunnable;
/** This console input allows to enter commands and retrieve the output as an
* input.

View File

@@ -36,7 +36,7 @@
* gclc-test:net.bigeon.gclc.test.TestConsoleManager.java
* Created on: Nov 18, 2016
*/
package net.bigeon.gclc.utils;
package net.bigeon.gclc.manager;
/*-
* #%L
@@ -79,7 +79,7 @@ import java.io.PipedOutputStream;
import java.io.PrintStream;
import java.nio.charset.StandardCharsets;
import net.bigeon.gclc.manager.ConsoleOutput;
import net.bigeon.gclc.utils.ReadingRunnable;
/** This console output allows to retrieve the output as an input.
* <p>

View File

@@ -36,7 +36,7 @@
* gclc:net.bigeon.gclc.system.SystemConsoleManager.java
* Created on: Dec 19, 2014
*/
package net.bigeon.gclc.utils;
package net.bigeon.gclc.manager;
/*-
* #%L
@@ -79,8 +79,8 @@ import java.io.PrintStream;
import java.nio.charset.Charset;
import java.util.function.Supplier;
import net.bigeon.gclc.manager.ConsoleInput;
import net.bigeon.gclc.tools.ConstantString;
import net.bigeon.gclc.utils.ReadingRunnable;
/** A console using the input stream and print stream.
* <p>

View File

@@ -36,7 +36,7 @@
* gclc:net.bigeon.gclc.system.SystemConsoleManager.java
* Created on: Dec 19, 2014
*/
package net.bigeon.gclc.utils;
package net.bigeon.gclc.manager;
/*-
* #%L
@@ -74,8 +74,6 @@ package net.bigeon.gclc.utils;
import java.io.IOException;
import java.io.PrintStream;
import net.bigeon.gclc.manager.ConsoleOutput;
/** A console using the input stream and print stream.
* <p>
* The default constructor will use the system standart input and output.

View File

@@ -75,6 +75,8 @@ import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import net.bigeon.gclc.manager.PipedConsoleOutput;
/** An incomplete implematation used to forward messages from a piped console.
* <p>
* This forwarding can be interrupted without closing the piped manager.