| Package | Description |
|---|---|
| org.unix4j.builder |
Defines interfaces and implementations used to create a command or a chain of
joined commands.
|
| org.unix4j.io |
Contains interfaces and classes used to handle input and output of commands.
|
| org.unix4j.line |
Contains the
Line interface used for
line-by-line processing of input data and provides two alternative line
implementations. |
| org.unix4j.operation |
Contains the
LineOperation
interface and the AdHocCommand
implementation facilitating the creation of ad-hoc 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.util |
Provides a set of utility classes used throughout the unix4j framework.
|
| org.unix4j.util.sort |
Contains interfaces and classes related to sorting.
|
| Modifier and Type | Method and Description |
|---|---|
List<Line> |
To.toLineList()
Executes the composite command and returns the result as a list
containing the output lines.
|
List<Line> |
DefaultCommandBuilder.toLineList() |
| Modifier and Type | Method and Description |
|---|---|
Line |
ReaderInput.readLine() |
Line |
NullInput.readLine() |
Line |
Input.readLine()
Reads the next line.
|
Line |
CompositeInput.readLine() |
Line |
BufferedInput.readLine() |
| Modifier and Type | Method and Description |
|---|---|
List<Line> |
BufferedOutput.asList()
Returns a new list with the lines currently stored by this
BufferdOutput object. |
Iterator<Line> |
Input.iterator()
Returns an immutable iterator over all lines returned by this input
object.
|
Iterator<Line> |
AbstractInput.iterator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
WriterOutput.processLine(Line line) |
boolean |
Output.processLine(Line line)
Writes a line to the output.
|
boolean |
NullOutput.processLine(Line line) |
boolean |
BufferedOutput.processLine(Line line) |
| Constructor and Description |
|---|
BufferedInput(LinkedList<Line> buffer)
Constructor with linked list used as source of the input lines.
|
BufferedOutput(List<Line> buffer)
Constructor using the specified list as line buffer.
|
| Modifier and Type | Class and Description |
|---|---|
class |
SimpleLine
A
Line implementation based on two CharSequence's, usually
two strings one for the contents and one for the line ending characters. |
class |
SingleCharSequenceLine
|
| Modifier and Type | Field and Description |
|---|---|
static Line |
Line.EMPTY_LINE
Line with empty content string and a default operating system dependent
line ending as defined by
LINE_ENDING. |
| Modifier and Type | Method and Description |
|---|---|
static Line |
SimpleLine.subLine(Line line,
int start,
int end,
boolean preserveLineEnding)
Returns a sub-line of the given
line, similar to a substring or
the method SimpleLine.subSequence(int, int). |
| Modifier and Type | Method and Description |
|---|---|
static Line |
SimpleLine.subLine(Line line,
int start,
int end,
boolean preserveLineEnding)
Returns a sub-line of the given
line, similar to a substring or
the method SimpleLine.subSequence(int, int). |
| Modifier and Type | Method and Description |
|---|---|
void |
LineOperation.operate(ExecutionContext context,
Line input,
LineProcessor output)
Performs an operation for the given input line.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
boolean |
MultipleInputLineProcessor.processLine(Line line) |
boolean |
LineProcessor.processLine(Line line)
Processes a single line and returns true if this
LineProcessor is
ready to process more lines. |
boolean |
InputLineProcessor.processLine(Line line) |
| Modifier and Type | Method and Description |
|---|---|
static List<Line> |
StringUtil.splitLines(String s)
Splits the given string into lines and returns each line as a separate
string in the result list.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
LineUtil.toMultiLineString(List<? extends Line> lines)
Returns a multi-line representation of the provided
lines. |
| Modifier and Type | Method and Description |
|---|---|
int |
LineComparator.compare(Line line1,
Line line2) |
Copyright © 2016. All Rights Reserved.