Package | Description |
---|---|
org.unix4j |
Provides a single class
Unix4j with static methods
serving as entry point to build commands and command chains joining several
commands. |
org.unix4j.builder |
Defines interfaces and implementations used to create a command or a chain of
joined commands.
|
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. |
org.unix4j.unix |
Provides implementations for commands inspired by well known unix commands.
|
org.unix4j.unix.from |
Contains private classes used by the
from command. |
org.unix4j.unix.grep |
Contains private classes used by the
grep command. |
org.unix4j.unix.sort |
Contains private classes used by the
sort command. |
org.unix4j.unix.wc |
Contains private classes used by the
wc command. |
Modifier and Type | Method and Description |
---|---|
static Unix4jCommandBuilder |
Unix4j.from(Input input)
Reads from the given input object and redirects the contents into
the next command.
|
Modifier and Type | Method and Description |
---|---|
Unix4jCommandBuilder |
DefaultUnix4jCommandBuilder.from(Input input) |
Unix4jCommandBuilder |
Unix4jCommandBuilder.from(Input input)
Reads from the given input object and redirects the contents into
the next command.
|
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 |
DefaultInputProcessor.begin(Input input,
LineProcessor output) |
void |
InputProcessor.begin(Input input,
LineProcessor output)
Indicates that the line processing task is about to start for the
specified
input device. |
void |
DefaultInputProcessor.finish(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. |
boolean |
DefaultInputProcessor.processLine(Input input,
Line line,
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. |
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.
|
Modifier and Type | Method and Description |
---|---|
R |
From.Interface.from(Input input)
Reads from the given input object and redirects the contents into
the next command.
|
Modifier and Type | Method and Description |
---|---|
Input |
FromArguments.getInput()
Returns the
<input> operand value: the input object to read from |
Modifier and Type | Method and Description |
---|---|
FromCommand |
FromFactory.from(Input input) |
void |
FromArguments.setInput(Input input)
Sets
<input> : the input object to read from |
Modifier and Type | Method and Description |
---|---|
void |
CountMatchingLinesInputProcessor.begin(Input input,
LineProcessor output) |
void |
WriteFilesWithMatchingLinesProcessor.begin(Input input,
LineProcessor output) |
void |
WriteMatchingLinesInputProcessor.begin(Input input,
LineProcessor output) |
void |
CountMatchingLinesInputProcessor.finish(Input input,
LineProcessor output) |
void |
WriteFilesWithMatchingLinesProcessor.finish(Input input,
LineProcessor output) |
void |
WriteMatchingLinesInputProcessor.finish(Input input,
LineProcessor output) |
boolean |
CountMatchingLinesInputProcessor.processLine(Input input,
Line line,
LineProcessor output) |
boolean |
WriteFilesWithMatchingLinesProcessor.processLine(Input input,
Line line,
LineProcessor output) |
boolean |
WriteMatchingLinesInputProcessor.processLine(Input input,
Line line,
LineProcessor output) |
Constructor and Description |
---|
MergeProcessor(SortCommand command,
ExecutionContext context,
LineProcessor output,
List<? extends Input> inputs) |
Modifier and Type | Method and Description |
---|---|
void |
WcFileProcessor.finish(Input input,
LineProcessor output) |
boolean |
WcFileProcessor.processLine(Input input,
Line line,
LineProcessor output) |
Copyright © 2012-2018 unix4j (tools4j), Ben Warner and Marco Terzer. All rights reserved.