com.g2forge.alexandria.command.stdio.StandardIO Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ax-command Show documentation
Show all versions of ax-command Show documentation
Library for command line programming.
package com.g2forge.alexandria.command.stdio;
import java.io.InputStream;
import java.io.PrintStream;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
@Data
@Builder
@AllArgsConstructor
public class StandardIO implements IStandardIO {
public static final StandardIO of() {
final StandardIO.StandardIOBuilder retVal = StandardIO.builder();
retVal.standardInput(System.in);
retVal.standardOutput(System.out);
retVal.standardError(System.err);
return retVal.build();
}
protected final I standardInput;
protected final O standardOutput;
protected final O standardError;
}