Move console IO implemetations. #1 fixed

Signed-off-by: Emmanuel Bigeon <emmanuel@bigeon.fr>
This commit is contained in:
Emmanuel Bigeon 2018-12-01 11:45:16 -05:00
parent 0e1c69dab7
commit 18b98997d3
9 changed files with 17 additions and 10 deletions

View File

@ -85,7 +85,7 @@ import java.util.concurrent.ConcurrentHashMap;
import net.bigeon.gclc.exception.CommandParsingException; import net.bigeon.gclc.exception.CommandParsingException;
import net.bigeon.gclc.exception.InvalidParameterException; import net.bigeon.gclc.exception.InvalidParameterException;
import net.bigeon.gclc.manager.ConsoleInput; import net.bigeon.gclc.manager.ConsoleInput;
import net.bigeon.gclc.utils.EmptyInput; import net.bigeon.gclc.manager.EmptyInput;
/** An object to handle standardized command parameters. /** An object to handle standardized command parameters.
* *

View File

@ -74,7 +74,7 @@ package net.bigeon.gclc.exception;
/** An exception raised during command parsing. /** An exception raised during command parsing.
* *
* @author Emmanuel Bigeon */ * @author Emmanuel Bigeon */
public class CommandParsingException extends Exception { public final class CommandParsingException extends Exception {
/** svuid. */ /** svuid. */
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;

View File

@ -75,7 +75,7 @@ package net.bigeon.gclc.exception;
* the command is already used. * the command is already used.
* *
* @author Emmanuel BIGEON */ * @author Emmanuel BIGEON */
public class InvalidCommandName extends Exception { public final class InvalidCommandName extends Exception {
/** the SVUID. */ /** the SVUID. */
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;

View File

@ -75,7 +75,7 @@ package net.bigeon.gclc.exception;
* parameter definition. * parameter definition.
* *
* @author Emmanuel Bigeon */ * @author Emmanuel Bigeon */
public class InvalidParameterException extends Exception { public final class InvalidParameterException extends RuntimeException {
/** the SVUID. */ /** the SVUID. */
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;

View File

@ -36,12 +36,10 @@
* gclc:net.bigeon.gclc.manager.EmptyInput.java * gclc:net.bigeon.gclc.manager.EmptyInput.java
* Created on: Nov 13, 2017 * Created on: Nov 13, 2017
*/ */
package net.bigeon.gclc.utils; package net.bigeon.gclc.manager;
import java.util.function.Supplier; import java.util.function.Supplier;
import net.bigeon.gclc.manager.ConsoleInput;
/*- /*-
* #%L * #%L
* Generic Command Ligne console * Generic Command Ligne console

View File

@ -36,9 +36,7 @@
* gclc:net.bigeon.gclc.manager.SinkOutput.java * gclc:net.bigeon.gclc.manager.SinkOutput.java
* Created on: Nov 13, 2017 * Created on: Nov 13, 2017
*/ */
package net.bigeon.gclc.utils; package net.bigeon.gclc.manager;
import net.bigeon.gclc.manager.ConsoleOutput;
/*- /*-
* #%L * #%L

View File

@ -0,0 +1,9 @@
/**
*
*/
/** This package contains the {@link java.lang.Runnable} implementations used to
* forward messages to or from console output or input.
*
* @author Emmanuel Bigeon */
package net.bigeon.gclc.manager.forwarding;

View File

@ -8,6 +8,7 @@ import java.io.IOException;
import org.junit.Test; import org.junit.Test;
import net.bigeon.gclc.manager.ConsoleInput; import net.bigeon.gclc.manager.ConsoleInput;
import net.bigeon.gclc.manager.EmptyInput;
import net.bigeon.gclc.tools.ConstantString; import net.bigeon.gclc.tools.ConstantString;
public class EmptyInputTest { public class EmptyInputTest {

View File

@ -7,6 +7,7 @@ import java.io.IOException;
import org.junit.Test; import org.junit.Test;
import net.bigeon.gclc.manager.ConsoleOutput; import net.bigeon.gclc.manager.ConsoleOutput;
import net.bigeon.gclc.manager.SinkOutput;
public class SinkOutputTest { public class SinkOutputTest {