Package org.beryx.textio
Class TextIO
- java.lang.Object
-
- org.beryx.textio.TextIO
-
public class TextIO extends java.lang.Object
A factory for creatingInputReader
s. All InputReaders created by the same TextIO instance share the sameTextTerminal
.
-
-
Constructor Summary
Constructors Constructor Description TextIO(TextTerminal<?> textTerminal)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
void
dispose(java.lang.String resultData)
TextTerminal<?>
getTextTerminal()
BooleanInputReader
newBooleanInputReader()
ByteInputReader
newByteInputReader()
CharInputReader
newCharInputReader()
DoubleInputReader
newDoubleInputReader()
<T extends java.lang.Enum<T>>
EnumInputReader<T>newEnumInputReader(java.lang.Class<T> enumClass)
FloatInputReader
newFloatInputReader()
<T> GenericInputReader<T>
newGenericInputReader(java.util.function.Function<java.lang.String,InputReader.ParseResult<T>> parser)
IntInputReader
newIntInputReader()
LongInputReader
newLongInputReader()
ShortInputReader
newShortInputReader()
StringInputReader
newStringInputReader()
-
-
-
Constructor Detail
-
TextIO
public TextIO(TextTerminal<?> textTerminal)
-
-
Method Detail
-
getTextTerminal
public TextTerminal<?> getTextTerminal()
-
dispose
public void dispose(java.lang.String resultData)
-
dispose
public void dispose()
-
newBooleanInputReader
public BooleanInputReader newBooleanInputReader()
-
newByteInputReader
public ByteInputReader newByteInputReader()
-
newCharInputReader
public CharInputReader newCharInputReader()
-
newDoubleInputReader
public DoubleInputReader newDoubleInputReader()
-
newFloatInputReader
public FloatInputReader newFloatInputReader()
-
newIntInputReader
public IntInputReader newIntInputReader()
-
newLongInputReader
public LongInputReader newLongInputReader()
-
newShortInputReader
public ShortInputReader newShortInputReader()
-
newStringInputReader
public StringInputReader newStringInputReader()
-
newEnumInputReader
public <T extends java.lang.Enum<T>> EnumInputReader<T> newEnumInputReader(java.lang.Class<T> enumClass)
-
newGenericInputReader
public <T> GenericInputReader<T> newGenericInputReader(java.util.function.Function<java.lang.String,InputReader.ParseResult<T>> parser)
-
-