| Package | Description |
|---|---|
| org.unix4j.command |
Declares the basic command interface and contains related classes used by
most command implementations.
|
| org.unix4j.io |
Contains interfaces and classes used to handle input and output of commands.
|
| org.unix4j.processor |
Defines
LineProcessor and
InputProcessor, two interfaces
used for line-by-line input processing, and provides some basic
implementations for both interfaces. |
| Modifier and Type | Method and Description |
|---|---|
Input |
ExitValueException.getInput()
Returns the input source that was causing this exception, for instance an
input file that was passed to a command.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ExitValueException.setInput(Input input)
Sets the input source that was causing this exception, for instance an
input file that was passed to a command.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractInput
Base implementation for
Input providing the
iterator() method. |
class |
BufferedInput
Input device based on a
LinkedList line buffer. |
class |
CompositeInput
An input composed from multiple other inputs returning all lines of the first
input, then all lines of the of the second input etc.
|
class |
FileInput
Input device reading from a
File. |
class |
NullInput
Input device representing an empty set with no lines.
|
class |
ReaderInput
|
class |
ResourceInput
Input device reading a resource using
Class.getResourceAsStream(String). |
class |
StdInput
Input device reading from the
standard input stream. |
class |
StreamInput
Input device reading from an
InputStream. |
class |
StringInput
Input device reading the input from a string.
|
class |
URLInput
Input device based on a
URL. |
| Modifier and Type | Method and Description |
|---|---|
static Input |
FileInput.composite(File... files)
Creates and returns an input composed from the specified files
altogether.
|
static Input |
FileInput.composite(List<File> files)
Creates and returns an input composed from the specified files
altogether.
|
| Constructor and Description |
|---|
CompositeInput(Input... inputs)
Constructor with inputs to combine.
|
| Constructor and Description |
|---|
CompositeInput(List<? extends Input> inputs)
Constructor with inputs to combine.
|
| Modifier and Type | Method and Description |
|---|---|
void |
InputProcessor.begin(Input input,
LineProcessor output)
Indicates that the line processing task is about to start for the
specified
input device. |
void |
DefaultInputProcessor.begin(Input input,
LineProcessor output) |
void |
InputProcessor.finish(Input input,
LineProcessor output)
Indicates that this line processing task is complete for the specified
input device and can finished. |
void |
DefaultInputProcessor.finish(Input input,
LineProcessor output) |
boolean |
InputProcessor.processLine(Input input,
Line line,
LineProcessor output)
Processes a single line and returns true if this
InputProcessor
is ready to process more lines. |
boolean |
DefaultInputProcessor.processLine(Input input,
Line line,
LineProcessor output) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
MultipleInputLineProcessor.beginMultiple(List<? extends Input> inputs,
LineProcessor output)
Called once at the beginning before iterating over the
Input
objects in the given inputs list. |
protected void |
MultipleInputLineProcessor.finishMultiple(List<? extends Input> inputs,
LineProcessor output)
Called once at the end after iterating over the
Input objects in
the given inputs list. |
| Constructor and Description |
|---|
InputLineProcessor(Input input,
InputProcessor processor,
LineProcessor output) |
RedirectInputLineProcessor(Input input,
LineProcessor standardInputProcessor)
Constructor with input object (usually a file operand of the command) and
the command processor that reads from the standard input.
|
| Constructor and Description |
|---|
MultipleInputLineProcessor(List<? extends Input> inputs,
InputProcessor processor,
LineProcessor output)
Constructor with input objects (usually file operands of the command) and
the input processor of the command that reads from the standard input.
|
RedirectInputLineProcessor(List<? extends Input> inputs,
LineProcessor standardInputProcessor)
Constructor with multiple input objects (usually file operands of the
command) and the command processor that reads from the standard input.
|
Copyright © 2016. All Rights Reserved.