Move console IO implemetations. #1 fixed
Signed-off-by: Emmanuel Bigeon <emmanuel@bigeon.fr>
This commit is contained in:
parent
0e1c69dab7
commit
18b98997d3
@ -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.
|
||||
*
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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
|
@ -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
|
@ -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;
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user