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.InvalidParameterException;
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.
*

View File

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

View File

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

View File

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

View File

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

View File

@ -36,9 +36,7 @@
* gclc:net.bigeon.gclc.manager.SinkOutput.java
* Created on: Nov 13, 2017
*/
package net.bigeon.gclc.utils;
import net.bigeon.gclc.manager.ConsoleOutput;
package net.bigeon.gclc.manager;
/*-
* #%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 net.bigeon.gclc.manager.ConsoleInput;
import net.bigeon.gclc.manager.EmptyInput;
import net.bigeon.gclc.tools.ConstantString;
public class EmptyInputTest {

View File

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