$ A B C D E F G H I J L M N O P R S T U V W Z 

$

$0 - Static variable in class org.unix4j.variable.Arg
Name for the variable referring to the first command line argument (zero based index)
$1 - Static variable in class org.unix4j.variable.Arg
Name for the variable referring to the second command line argument (zero based index)
$2 - Static variable in class org.unix4j.variable.Arg
Name for the variable referring to the third command line argument (zero based index)
$3 - Static variable in class org.unix4j.variable.Arg
Name for the variable referring to the fourth command line argument (zero based index)
$4 - Static variable in class org.unix4j.variable.Arg
Name for the variable referring to the fifth command line argument (zero based index)
$5 - Static variable in class org.unix4j.variable.Arg
Name for the variable referring to the sixth command line argument (zero based index)
$6 - Static variable in class org.unix4j.variable.Arg
Name for the variable referring to the seventh command line argument (zero based index)
$7 - Static variable in class org.unix4j.variable.Arg
Name for the variable referring to the eighth command line argument (zero based index)
$8 - Static variable in class org.unix4j.variable.Arg
Name for the variable referring to the ninth command line argument (zero based index)
$9 - Static variable in class org.unix4j.variable.Arg
Name for the variable referring to the tenth command line argument (zero based index)
$all - Static variable in class org.unix4j.variable.Arg
Name for the variable referring to all command line arguments.

A

ABORT - Static variable in class org.unix4j.io.NullOutput
Aborting instance returning false when NullOutput.processLine(Line) is called.
AbstractCommand<A extends Arguments<A>> - Class in org.unix4j.command
Abstract base class suitable for most command implementations.
AbstractCommand(String, A) - Constructor for class org.unix4j.command.AbstractCommand
Constructor with command name, type and arguments.
AbstractInput - Class in org.unix4j.io
Base implementation for Input providing the iterator() method.
AbstractInput() - Constructor for class org.unix4j.io.AbstractInput
 
AbstractLineProcessor<A extends Arguments<A>> - Class in org.unix4j.processor
Abstract base implementation for LineProcessor returned by the execute method of commands constructed with a reference to the command plus context and output passed to Command.execute(ExecutionContext, LineProcessor).
AbstractLineProcessor(Command<A>, ExecutionContext, LineProcessor) - Constructor for class org.unix4j.processor.AbstractLineProcessor
Constructor with command creating this processor, execution context and output to write to.
AbstractRange - Class in org.unix4j.util
 
AbstractRange() - Constructor for class org.unix4j.util.AbstractRange
 
acronym() - Method in interface org.unix4j.option.Option
Returns a one letter acronym for this option.
add(ValueConverter<? extends V>) - Method in class org.unix4j.convert.CompositeValueConverter
 
add(AbstractRange) - Method in class org.unix4j.util.CompositeRange
 
add(Range) - Method in class org.unix4j.util.CompositeRange
 
addAll(Collection<? extends ValueConverter<? extends V>>) - Method in class org.unix4j.convert.CompositeValueConverter
 
addVariableResolver(VariableResolver) - Method in class org.unix4j.variable.DefaultVariableContext
 
addVariableResolver(VariableResolver) - Method in interface org.unix4j.variable.VariableContext
Adds a variable resolver to this variable context.
AdHocCommand - Class in org.unix4j.operation
Implementation of an ad-hoc command based on a LineOperation.
AdHocCommand(LineOperation) - Constructor for class org.unix4j.operation.AdHocCommand
 
AdHocCommand.Args - Class in org.unix4j.operation
Arguments for AdHocCommand.
AdHocCommand.Args(LineOperation) - Constructor for class org.unix4j.operation.AdHocCommand.Args
Constructor with the single operation argument passed to the constructor of AdHocCommand.
ALL_CHILDREN_WITH_DOT_PREFIX - Static variable in class org.unix4j.util.RelativePathBase
Alternative settings to construct relative paths similar to RelativePathBase.DEFAULT: "." represents the base directory, "./" is used as prefix of child paths and "../" for elements up to the common ancestor.
andBetween(int, int) - Method in class org.unix4j.util.Range
Adds a range element to include all indexes between (and including) the given indexes.
andFromStartTo(int) - Method in class org.unix4j.util.Range
Adds a range element to include all indexes from 1 to and inclusive of the given index.
andOf(int...) - Method in class org.unix4j.util.Range
 
andToEndFrom(int) - Method in class org.unix4j.util.Range
Adds a range element to include all indexes from (and including) the given index to any greater index.
ANY_ARRAY_TO_LIST - Static variable in class org.unix4j.convert.ListConverters
 
ANY_ARRAY_TO_STRING_ARRAY - Static variable in class org.unix4j.convert.StringArrayConverters
 
appendPathForBaseDir(StringBuilder, File) - Method in interface org.unix4j.util.RelativePathBase.Settings
Appends the path for a file that equals the base directory.
appendPrefixForChildren(StringBuilder, File, boolean) - Method in interface org.unix4j.util.RelativePathBase.Settings
Appends the path prefix for children of the base directory.
appendPrefixToCommonAncestor(StringBuilder, File, int) - Method in interface org.unix4j.util.RelativePathBase.Settings
Appends the path prefix from the base directory to the common ancestor of base directory and target file.
apply(LineOperation) - Method in interface org.unix4j.builder.CommandBuilder
Adds a new command based on the specified operation and adds it to the chain of commands held by this builder.
apply(LineOperation) - Method in class org.unix4j.builder.DefaultCommandBuilder
 
Arg - Class in org.unix4j.variable
The Arg class defines variable name constants for command arguments.
arg(int) - Static method in class org.unix4j.variable.Arg
Name for the variable referring to the (i+1)th command line argument (the index i is zero based).
argIndex(String) - Static method in class org.unix4j.variable.Arg
Returns the zero based index of an arg variable given the name of the variable.
args() - Static method in class org.unix4j.variable.Arg
Name for the variable referring to all command line arguments.
argsFrom(int) - Static method in class org.unix4j.variable.Arg
Name for the variable referring to all command line arguments starting from the specified index.
argsFromIndex(String) - Static method in class org.unix4j.variable.Arg
Returns the zero based start index of an args variable given the name of the variable.
ArgsUtil - Class in org.unix4j.util
Provides static utility methods to parse options and operands of a command passed to the command as a string vararg parameter.
Arguments<A extends Arguments<A>> - Interface in org.unix4j.command
Interface implemented by command arguments.
ARRAY_TO_FILE_ARRAY - Static variable in class org.unix4j.convert.FileArrayConverters
 
ARRAY_TO_FLAT_LIST - Static variable in class org.unix4j.convert.ListConverters
 
ARRAY_TO_LIST - Static variable in class org.unix4j.convert.ListConverters
 
ARRAY_TO_STRING_ARRAY - Static variable in class org.unix4j.convert.StringArrayConverters
 
ArrayConverters - Class in org.unix4j.convert
 
ArrayConverters() - Constructor for class org.unix4j.convert.ArrayConverters
 
ArrayUtil - Class in org.unix4j.util
Utility class with static methods for arrays.
asInput() - Method in class org.unix4j.io.BufferedOutput
Returns a BufferedInput with all lines contained in this BufferedOutput.
asList() - Method in class org.unix4j.io.BufferedOutput
Returns a new list with the lines currently stored by this BufferdOutput object.
Assert - Class in org.unix4j.util
 
Assert() - Constructor for class org.unix4j.util.Assert
 
assertArgFalse(String, boolean) - Static method in class org.unix4j.util.Assert
 
assertArgGreaterThan(String, int, int) - Static method in class org.unix4j.util.Assert
 
assertArgGreaterThanOrEqualTo(String, int, int) - Static method in class org.unix4j.util.Assert
 
assertArgLessThan(String, int, int) - Static method in class org.unix4j.util.Assert
 
assertArgLessThanOrEqualTo(String, int, int) - Static method in class org.unix4j.util.Assert
 
assertArgNotNull(String, Object) - Static method in class org.unix4j.util.Assert
 
assertArgNotNull(String, Object...) - Static method in class org.unix4j.util.Assert
 
assertArgTrue(String, boolean) - Static method in class org.unix4j.util.Assert
 
assertNotNull(String, T) - Static method in class org.unix4j.util.Assert
Returns the given value if it is not null and throws an exception otherwise.
asSet() - Method in class org.unix4j.option.DefaultOptionSet
Returns the underlying backing EnumSet.
asSet() - Method in interface org.unix4j.option.OptionSet
Returns the active options in a Set.

B

begin(Input, LineProcessor) - Method in class org.unix4j.processor.DefaultInputProcessor
 
begin(Input, LineProcessor) - Method in interface org.unix4j.processor.InputProcessor
Indicates that the line processing task is about to start for the specified input device.
beginMultiple(List<? extends Input>, LineProcessor) - Method in class org.unix4j.processor.MultipleInputLineProcessor
Called once at the beginning before iterating over the Input objects in the given inputs list.
between(int, int) - Static method in class org.unix4j.util.Range
Creates a range element to include all elements between (and including) the given indexes.
BufferedInput - Class in org.unix4j.io
Input device based on a LinkedList line buffer.
BufferedInput(LinkedList<Line>) - Constructor for class org.unix4j.io.BufferedInput
Constructor with linked list used as source of the input lines.
BufferedOutput - Class in org.unix4j.io
Output device storing all written lines in memory in a List.
BufferedOutput() - Constructor for class org.unix4j.io.BufferedOutput
Constructor using an ArrayList as backing buffer for the lines.
BufferedOutput(List<Line>) - Constructor for class org.unix4j.io.BufferedOutput
Constructor using the specified list as line buffer.
build() - Method in interface org.unix4j.builder.CommandBuilder
Builds the composite command and returns it.
build() - Method in class org.unix4j.builder.DefaultCommandBuilder
 

C

CharacterConverters - Class in org.unix4j.convert
 
CharacterConverters() - Constructor for class org.unix4j.convert.CharacterConverters
 
charAt(int) - Method in class org.unix4j.line.SimpleLine
 
charAt(int) - Method in class org.unix4j.line.SingleCharSequenceLine
 
CHILDREN_WITHOUT_PREFIX - Static variable in class org.unix4j.util.RelativePathBase
Alternative settings to construct relative paths without prefixes for children: "." represents the base directory, no prefix for child paths and "../" for elements up to the common ancestor.
clear() - Method in class org.unix4j.io.BufferedOutput
Clears all lines in this buffer.
clone() - Method in class org.unix4j.option.DefaultOptionSet
 
cloneDeep(T) - Static method in class org.unix4j.util.CloneUtil
Creates a deep clone of the specified value and returns it.
cloneReflective(T) - Static method in class org.unix4j.util.CloneUtil
Clones the given value and returns the non-deep clone.
CloneUtil - Class in org.unix4j.util
Utility class with static methods for cloning, for instance to deep-clone nested lists, sets and maps.
COLLATOR - Static variable in class org.unix4j.util.sort.LineComparator
Line comparator using case sensitive comparison based on the current local's collation order.
COLLATOR_IGNORE_CASE - Static variable in class org.unix4j.util.sort.LineComparator
Line comparator using case insensitive comparison based on the current local's collation order.
COLLATOR_IGNORE_CASE_AND_LEADING_BLANKS - Static variable in class org.unix4j.util.sort.LineComparator
Line comparator using case insensitive comparison based on the current local's collation order, ignoring leading blanks (spaces and tabs) in the content string of the line.
COLLATOR_IGNORE_LEADING_BLANKS - Static variable in class org.unix4j.util.sort.LineComparator
Line comparator using case sensitive comparison based on the current local's collation order, ignoring leading blanks (spaces and tabs) in the content string of the line.
COLLECTION_OR_ARRAY_TO_FILE_ARRAY - Static variable in class org.unix4j.convert.FileArrayConverters
 
COLLECTION_OR_ARRAY_TO_FLAT_ARRAY - Static variable in class org.unix4j.convert.ArrayConverters
 
COLLECTION_OR_ARRAY_TO_FLAT_FILE_ARRAY - Static variable in class org.unix4j.convert.FileArrayConverters
 
COLLECTION_OR_ARRAY_TO_FLAT_LIST - Static variable in class org.unix4j.convert.ListConverters
 
COLLECTION_OR_ARRAY_TO_FLAT_STRING_ARRAY - Static variable in class org.unix4j.convert.StringArrayConverters
 
COLLECTION_OR_ARRAY_TO_STRING_ARRAY - Static variable in class org.unix4j.convert.StringArrayConverters
 
COLLECTION_TO_ARRAY - Static variable in class org.unix4j.convert.ArrayConverters
 
COLLECTION_TO_FILE_ARRAY - Static variable in class org.unix4j.convert.FileArrayConverters
 
COLLECTION_TO_FLAT_LIST - Static variable in class org.unix4j.convert.ListConverters
 
COLLECTION_TO_LIST - Static variable in class org.unix4j.convert.ListConverters
 
COLLECTION_TO_STRING_ARRAY - Static variable in class org.unix4j.convert.StringArrayConverters
 
COMMA_DELIMITED - Static variable in class org.unix4j.convert.StringArrayConverters
 
Command<A extends Arguments<A>> - Interface in org.unix4j.command
A command is an executable unit defined by the command name and the command line arguments.
CommandBuilder - Interface in org.unix4j.builder
A builder used to build a single command or a chain of joined commands.
CommandInterface<R> - Interface in org.unix4j.command
A command interface defines the different ways a certain Command can be invoked (or instantiated).
compare(T, T) - Method in class org.unix4j.util.sort.CompositeComparator
 
compare(CharSequence, CharSequence) - Method in class org.unix4j.util.sort.DecimalNumberStringComparator
 
compare(Line, Line) - Method in class org.unix4j.util.sort.LineComparator
 
compare(T, T) - Method in class org.unix4j.util.sort.ReverseOrderComparator
 
compare(CharSequence, CharSequence) - Method in class org.unix4j.util.sort.ScientificNumberStringComparator
 
compare(String, String) - Method in class org.unix4j.util.sort.TrimBlanksStringComparator
 
composite(File...) - Static method in class org.unix4j.io.FileInput
Creates and returns an input composed from the specified files altogether.
composite(List<File>) - Static method in class org.unix4j.io.FileInput
Creates and returns an input composed from the specified files altogether.
CompositeComparator<T> - Class in org.unix4j.util.sort
A comparator based on a list of underlying comparators used in the specified order.
CompositeComparator(Comparator<? super T>...) - Constructor for class org.unix4j.util.sort.CompositeComparator
Constructs a comparator based on the specified underlying comparators.
CompositeComparator(Comparator<? super T>, Comparator<? super T>) - Constructor for class org.unix4j.util.sort.CompositeComparator
Constructs a comparator based on the specified underlying comparators.
CompositeComparator(Comparator<? super T>, Comparator<? super T>, Comparator<? super T>) - Constructor for class org.unix4j.util.sort.CompositeComparator
Constructs a comparator based on the specified underlying comparators.
CompositeComparator(List<Comparator<? super T>>) - Constructor for class org.unix4j.util.sort.CompositeComparator
Constructs a comparator based on the specified underlying comparators.
CompositeInput - Class in org.unix4j.io
An input composed from multiple other inputs returning all lines of the first input, then all lines of the of the second input etc.
CompositeInput(Input...) - Constructor for class org.unix4j.io.CompositeInput
Constructor with inputs to combine.
CompositeInput(List<? extends Input>) - Constructor for class org.unix4j.io.CompositeInput
Constructor with inputs to combine.
CompositeRange - Class in org.unix4j.util
 
CompositeRange() - Constructor for class org.unix4j.util.CompositeRange
 
compositeRange - Variable in class org.unix4j.util.Range
 
CompositeValueConverter<V> - Class in org.unix4j.convert
 
CompositeValueConverter() - Constructor for class org.unix4j.convert.CompositeValueConverter
 
CompositeValueConverter(Collection<? extends ValueConverter<? extends V>>) - Constructor for class org.unix4j.convert.CompositeValueConverter
 
concat(ValueConverter<?>, ValueConverter<V>) - Static method in class org.unix4j.convert.ConcatenatedConverter
 
concat(ValueConverter<N>) - Method in class org.unix4j.convert.ConcatenatedConverter
 
ConcatenatedConverter<V> - Class in org.unix4j.convert
 
ConcatenatedConverter(ValueConverter<?>, ValueConverter<V>) - Constructor for class org.unix4j.convert.ConcatenatedConverter
 
containsIgnoreCase(String, String) - Static method in class org.unix4j.util.StringUtil
Returns true if and only if the string s contains the specified target string performing case insensitive string comparison.
convert(Object) - Method in class org.unix4j.convert.CompositeValueConverter
 
convert(Object) - Method in class org.unix4j.convert.ConcatenatedConverter
 
convert(Object) - Method in class org.unix4j.convert.DateConverters.StringToDateConverter
 
convert(Object) - Method in class org.unix4j.convert.EnumConverters.StringToEnumConverter
 
convert(Object) - Method in class org.unix4j.convert.OptionSetConverters.AcronymStringToOptionSetConverter
 
convert(Object) - Method in class org.unix4j.convert.OptionSetConverters.IterableOfOptionNameOrAcronymToOptionSetConverter
 
convert(Object) - Method in class org.unix4j.convert.OptionSetConverters.NameOrAcronymToOptionConverter
 
convert(Object) - Method in class org.unix4j.convert.OptionSetConverters.OptionNameStringToSingletonSetConverter
 
convert(Object) - Method in class org.unix4j.convert.OptionSetConverters.OptionToSingletonSetConverter
 
convert(Object) - Method in interface org.unix4j.convert.ValueConverter
Converts the given value into the target type V if it is not null and if such a conversion is supported by this converter.
ConverterRegistry - Interface in org.unix4j.convert
A registry defines convertes for different data types.
Counter - Class in org.unix4j.util
 
Counter() - Constructor for class org.unix4j.util.Counter
 
CR - Static variable in interface org.unix4j.line.Line
The carriage return (CR) character '\r' used to encode line endings in WINDOWS together with Line.LF.
createCommandBuilder(Class<B>, CommandInterface<? extends Command<?>>...) - Static method in class org.unix4j.builder.GenericCommandBuilder
Returns a new command builder implementing the specified commandBuilderInterface.
createCommandBuilder(Class<B>, DefaultCommandBuilder, CommandInterface<? extends Command<?>>...) - Static method in class org.unix4j.builder.GenericCommandBuilder
Returns a new command builder implementing the specified commandBuilderInterface.
createExecutionContext() - Method in interface org.unix4j.context.ExecutionContextFactory
Creates and returns a new execution context instance.
current() - Static method in enum org.unix4j.util.OS
 

D

DateConverters - Class in org.unix4j.convert
 
DateConverters() - Constructor for class org.unix4j.convert.DateConverters
 
DateConverters.StringToDateConverter - Class in org.unix4j.convert
 
DateConverters.StringToDateConverter(String) - Constructor for class org.unix4j.convert.DateConverters.StringToDateConverter
 
DateConverters.StringToDateConverter(DateFormat) - Constructor for class org.unix4j.convert.DateConverters.StringToDateConverter
 
DecimalNumberStringComparator - Class in org.unix4j.util.sort
A comparator for decimal strings consisting of optional blanks, an optional '-' sign, and zero or more digits possibly separated by thousands separators, optionally followed by a decimal-point character and zero or more digits.
DecimalNumberStringComparator(DecimalFormatSymbols) - Constructor for class org.unix4j.util.sort.DecimalNumberStringComparator
Constructor with decimal symbols.
decrement() - Method in class org.unix4j.util.Counter
 
decrement(long) - Method in class org.unix4j.util.Counter
 
DEFAULT - Static variable in class org.unix4j.convert.ArrayConverters
 
DEFAULT - Static variable in class org.unix4j.convert.CharacterConverters
 
DEFAULT - Static variable in class org.unix4j.convert.DateConverters
 
DEFAULT - Static variable in class org.unix4j.convert.FileArrayConverters
 
DEFAULT - Static variable in class org.unix4j.convert.FileConverters
 
DEFAULT - Static variable in class org.unix4j.convert.InputStreamConverters
 
DEFAULT - Static variable in class org.unix4j.convert.IntegerConverters
 
DEFAULT - Static variable in class org.unix4j.convert.ListConverters
 
DEFAULT - Static variable in class org.unix4j.convert.LongConverters
 
DEFAULT - Static variable in class org.unix4j.convert.OutputStreamConverters
 
DEFAULT - Static variable in class org.unix4j.convert.PatternConverters
 
DEFAULT - Static variable in class org.unix4j.convert.RangeConverters
 
DEFAULT - Static variable in class org.unix4j.convert.StringArrayConverters
 
DEFAULT - Static variable in class org.unix4j.convert.StringConverters
 
DEFAULT - Static variable in class org.unix4j.convert.URLConverters
 
DEFAULT - Static variable in class org.unix4j.io.NullOutput
Default instance returning true when NullOutput.processLine(Line) is called.
DEFAULT - Static variable in class org.unix4j.util.RelativePathBase
Default settings to construct relative paths: "." represents the base directory, "./" is used as prefix of child paths (but "" for direct children) and "../" for elements up to the common ancestor.
DEFAULT_COMMA_DELIMITED - Static variable in class org.unix4j.convert.StringArrayConverters
 
DEFAULT_SPACE_DELIMITED - Static variable in class org.unix4j.convert.StringArrayConverters
 
DEFAULT_TAB_DELIMITED - Static variable in class org.unix4j.convert.StringArrayConverters
 
DEFAULT_WHITESPACE_DELIMITED - Static variable in class org.unix4j.convert.StringArrayConverters
 
DefaultCommandBuilder - Class in org.unix4j.builder
Default implementation for a CommandBuilder.
DefaultCommandBuilder() - Constructor for class org.unix4j.builder.DefaultCommandBuilder
Default constructor initialized to build a NoOp command if no command is joined to this builder's command chain.
DefaultCommandBuilder(ExecutionContextFactory) - Constructor for class org.unix4j.builder.DefaultCommandBuilder
Constructor using the specified factory to create contexts for command execution.
DefaultConverterRegistry - Class in org.unix4j.convert
Default implementation for ConverterRegistry storing the converters per value type in a Map.
DefaultConverterRegistry() - Constructor for class org.unix4j.convert.DefaultConverterRegistry
 
DefaultExecutionContext - Class in org.unix4j.context
Default execution context implementation with setters for some values and meaningful defaults for instance taken from system properties.
DefaultExecutionContext() - Constructor for class org.unix4j.context.DefaultExecutionContext
 
DefaultExecutionContext(File) - Constructor for class org.unix4j.context.DefaultExecutionContext
 
DefaultInputProcessor - Class in org.unix4j.processor
The DefaultInputProcessor simply writes every line passed to DefaultInputProcessor.processLine(Input, Line, LineProcessor) to the output.
DefaultInputProcessor() - Constructor for class org.unix4j.processor.DefaultInputProcessor
 
DefaultOptionSet<E extends Enum<E> & Option> - Class in org.unix4j.option
Default implementation of a modifiable option set.
DefaultOptionSet(E) - Constructor for class org.unix4j.option.DefaultOptionSet
Constructor for option set initialized with a single option.
DefaultOptionSet(E, E...) - Constructor for class org.unix4j.option.DefaultOptionSet
Constructor for option set initialized with at least one active options.
DefaultOptionSet(Class<E>) - Constructor for class org.unix4j.option.DefaultOptionSet
Constructor for an empty option set with no active options.
DefaultVariableContext - Class in org.unix4j.variable
Default implementation of VariableContext.
DefaultVariableContext() - Constructor for class org.unix4j.variable.DefaultVariableContext
 
DerivedExecutionContext - Class in org.unix4j.context
A derived execution context allows overriding of some values while forwarding other getter calls to an original delegate context.
DerivedExecutionContext() - Constructor for class org.unix4j.context.DerivedExecutionContext
Constructor for new derived execution context with a new instance of DefaultExecutionContext as delegate context.
DerivedExecutionContext(ExecutionContext) - Constructor for class org.unix4j.context.DerivedExecutionContext
Constructor for new derived execution context with the specified delegate context.

E

EMPTY_LINE - Static variable in interface org.unix4j.line.Line
Line with empty content string and a default operating system dependent line ending as defined by Line.LINE_ENDING.
encode(String) - Static method in class org.unix4j.util.Variables
Returns the string encoding for a variable with the given name.
encode(String, int) - Static method in class org.unix4j.util.Variables
Returns the string encoding for an indexed variable with the given name and index.
EnumConverters - Class in org.unix4j.convert
 
EnumConverters() - Constructor for class org.unix4j.convert.EnumConverters
 
EnumConverters.StringToEnumConverter<E extends Enum<E>> - Class in org.unix4j.convert
 
EnumConverters.StringToEnumConverter(Class<E>) - Constructor for class org.unix4j.convert.EnumConverters.StringToEnumConverter
 
equalObjects(Object, Object) - Static method in class org.unix4j.util.EqualsUtil
 
equals(Object) - Method in interface org.unix4j.line.Line
Compares this line with obj and returns true if obj is a Line (any subclass) and both lines are identical.
equals(Object) - Method in class org.unix4j.line.SimpleLine
 
equals(Object) - Method in class org.unix4j.line.SingleCharSequenceLine
 
equals(Object) - Method in class org.unix4j.option.DefaultOptionSet
 
equalsIgnoreCase(char, char) - Static method in class org.unix4j.util.StringUtil
Returns true if the two characters are equal if case is ignored.
EqualsUtil - Class in org.unix4j.util
Utility class with static methods useful to implement equals(Object) methods.
execute(ExecutionContext, LineProcessor) - Method in interface org.unix4j.command.Command
Executes this command and returns a LineProcessor object.
execute(ExecutionContext, LineProcessor) - Method in class org.unix4j.command.JoinedCommand
Executes this joined command redirecting the output of the first command such that it becomes the input of the second command.
execute(ExecutionContext, LineProcessor) - Method in class org.unix4j.command.NoOp
 
execute(ExecutionContext, LineProcessor) - Method in class org.unix4j.operation.AdHocCommand
 
ExecutionContext - Interface in org.unix4j.context
The execution context encapsulates all information relevant during the execution of a Command or chain of joined commands.
ExecutionContextFactory - Interface in org.unix4j.context
Factory for an ExecutionContext.
ExecutionContextVariableResolver - Class in org.unix4j.variable
Variable resolver for values defined by the ExecutionContext.
ExecutionContextVariableResolver(ExecutionContext) - Constructor for class org.unix4j.variable.ExecutionContextVariableResolver
Constructor with execution context.
ExecutionContextVariableResolver.Variable - Enum in org.unix4j.variable
Variable name constants for ExecutionContext values.
ExitValueException - Exception in org.unix4j.command
An exception thrown when a command terminates with an error; in Unix, the command would return a value different from zero.
ExitValueException(String, int) - Constructor for exception org.unix4j.command.ExitValueException
Constructor with message and non-zero exit value.
ExitValueException(String, int, Throwable) - Constructor for exception org.unix4j.command.ExitValueException
Constructor with message, a non-zero exit value and a causing exception.
expandFiles(String...) - Static method in class org.unix4j.util.FileUtil
Expands files if necessary, meaning that input files with wildcards are expanded.
expandFiles(File, String...) - Static method in class org.unix4j.util.FileUtil
Expands files if necessary, meaning that input files with wildcards are expanded.

F

FACTORY - Static variable in class org.unix4j.context.DefaultExecutionContext
Factory returning a new instance of DefaultExecutionContext using the default constructor.
FILE - Static variable in class org.unix4j.convert.InputStreamConverters
 
FILE - Static variable in class org.unix4j.convert.OutputStreamConverters
 
FILE_ARRAY_TO_FILE_ARRAY - Static variable in class org.unix4j.convert.FileArrayConverters
 
FILE_TO_STREAM - Static variable in class org.unix4j.convert.InputStreamConverters
 
FILE_TO_STREAM - Static variable in class org.unix4j.convert.OutputStreamConverters
 
FileArrayConverters - Class in org.unix4j.convert
 
FileArrayConverters() - Constructor for class org.unix4j.convert.FileArrayConverters
 
FileConverters - Class in org.unix4j.convert
 
FileConverters() - Constructor for class org.unix4j.convert.FileConverters
 
FileInput - Class in org.unix4j.io
Input device reading from a File.
FileInput(FileReader) - Constructor for class org.unix4j.io.FileInput
 
FileInput(File, File) - Constructor for class org.unix4j.io.FileInput
 
FileInput(File) - Constructor for class org.unix4j.io.FileInput
 
FileInput(FileInputStream) - Constructor for class org.unix4j.io.FileInput
 
FileInput(FileDescriptor) - Constructor for class org.unix4j.io.FileInput
 
FileInput(String) - Constructor for class org.unix4j.io.FileInput
 
FileInput(File, String) - Constructor for class org.unix4j.io.FileInput
 
FileOutput - Class in org.unix4j.io
Output device writing to a File.
FileOutput(FileWriter) - Constructor for class org.unix4j.io.FileOutput
 
FileOutput(File) - Constructor for class org.unix4j.io.FileOutput
 
FileOutput(FileOutputStream) - Constructor for class org.unix4j.io.FileOutput
 
FileOutput(FileDescriptor) - Constructor for class org.unix4j.io.FileOutput
 
FileOutput(String) - Constructor for class org.unix4j.io.FileOutput
 
FileTestUtils - Class in org.unix4j.util
 
FileTestUtils() - Constructor for class org.unix4j.util.FileTestUtils
 
FileUtil - Class in org.unix4j.util
Utility class with static methods involving files.
findEndTrimBlanks(CharSequence) - Static method in class org.unix4j.util.sort.TrimBlanksStringComparator
Finds and returns the end of the given character sequence after trimming spaces and tabs.
findEndTrimNewlineChars(CharSequence) - Static method in class org.unix4j.util.StringUtil
Finds and returns the end of the given character sequence after trimming new line characters from the right.
findEndTrimWhitespace(CharSequence) - Static method in class org.unix4j.util.StringUtil
Finds and returns the end of the given character sequence after trimming white space characters from the right.
findStartTrimBlanks(CharSequence) - Static method in class org.unix4j.util.sort.TrimBlanksStringComparator
Finds and returns the start of the given character sequence after trimming spaces and tabs.
findStartTrimNewlineChars(CharSequence) - Static method in class org.unix4j.util.StringUtil
Finds and returns the start of the given sequence after trimming newline characters from the left.
findStartTrimNewlineChars(CharSequence, int) - Static method in class org.unix4j.util.StringUtil
Finds and returns the start of the given sequence after trimming newline characters from the left, starting at the given start index.
findStartTrimWhitespace(CharSequence) - Static method in class org.unix4j.util.StringUtil
Finds and returns the start of the given sequence after trimming whitespace characters from the left.
findStartTrimWhitespace(CharSequence, int) - Static method in class org.unix4j.util.StringUtil
Finds and returns the start of the given sequence after trimming whitespace characters from the left, starting at the given start index.
findWhitespace(CharSequence) - Static method in class org.unix4j.util.StringUtil
Finds and returns the first whitespace character in the given sequence, or the length of the string if no whitespace is found.
findWhitespace(CharSequence, int) - Static method in class org.unix4j.util.StringUtil
Finds and returns the first whitespace character in the given sequence at or after start.
finish() - Method in class org.unix4j.io.BufferedOutput
 
finish() - Method in class org.unix4j.io.NullOutput
 
finish() - Method in interface org.unix4j.io.Output
Indicates that all output has been written.
finish() - Method in class org.unix4j.io.WriterOutput
 
finish(Input, LineProcessor) - Method in class org.unix4j.processor.DefaultInputProcessor
 
finish() - Method in class org.unix4j.processor.InputLineProcessor
 
finish(Input, LineProcessor) - Method in interface org.unix4j.processor.InputProcessor
Indicates that this line processing task is complete for the specified input device and can finished.
finish() - Method in interface org.unix4j.processor.LineProcessor
Indicates that this line processing task is complete and can finished.
finish() - Method in class org.unix4j.processor.MultipleInputLineProcessor
Performs the following operations to process all Input objects that have been passed to the constructor: Calls beginMultiple(..) Iterates over all input objects in sequence Calls InputProcessor.begin(Input, LineProcessor) Calls InputProcessor.processLine(Input, Line, LineProcessor) for every line in the current input Calls InputProcessor.finish(Input, LineProcessor) Calls finishMultiple(..)
finishMultiple(List<? extends Input>, LineProcessor) - Method in class org.unix4j.processor.MultipleInputLineProcessor
Called once at the end after iterating over the Input objects in the given inputs list.
first() - Method in class org.unix4j.util.CompositeRange
 
fixSizeString(int, boolean, char, long) - Static method in class org.unix4j.util.StringUtil
Returns the given value as a string of fixed length size padding or truncating the value if necessary.
fixSizeString(int, boolean, String) - Static method in class org.unix4j.util.StringUtil
Returns the given string s into a string of fixed length size padding or truncating the string with spaces if necessary.
fixSizeString(int, boolean, char, String) - Static method in class org.unix4j.util.StringUtil
Returns the given string s into a string of fixed length size padding or truncating the string if necessary.
FLATTEN - Static variable in class org.unix4j.convert.ArrayConverters
 
FLATTEN - Static variable in class org.unix4j.convert.FileArrayConverters
 
FLATTEN - Static variable in class org.unix4j.convert.ListConverters
 
FLATTEN - Static variable in class org.unix4j.convert.StringArrayConverters
 
fromStartTo(int) - Static method in class org.unix4j.util.Range
Creates a range element to include all indexes from 1 to (and inclusive of) the given index.

G

GenericCommandBuilder - Class in org.unix4j.builder
Generic builder dynamically creating an implementation of an interface extending CommandBuilder based on a series of command factories for all the methods present in that interface.
GenericCommandBuilder() - Constructor for class org.unix4j.builder.GenericCommandBuilder
 
getArguments(ExecutionContext) - Method in class org.unix4j.command.AbstractCommand
 
getArguments(ExecutionContext) - Method in interface org.unix4j.command.Command
Returns the implementation specific command arguments and options for the given execution context.
getArguments(ExecutionContext) - Method in class org.unix4j.command.JoinedCommand
 
getArguments() - Method in class org.unix4j.processor.AbstractLineProcessor
Returns the command arguments for the current variable context.
getBase() - Method in class org.unix4j.util.RelativePathBase
Returns the base directory for relative paths, the directory that was passed to the constructor.
getByVariableName(String) - Static method in enum org.unix4j.variable.ExecutionContextVariableResolver.Variable
 
getCommand() - Method in class org.unix4j.processor.AbstractLineProcessor
Returns the command that was passed to the constructor of this line processor, the command whose execute method usually returns this line processor.
getContent() - Method in interface org.unix4j.line.Line
Returns the contents making up this line, but without the line ending characters.
getContent() - Method in class org.unix4j.line.SimpleLine
 
getContent() - Method in class org.unix4j.line.SingleCharSequenceLine
 
getContentLength() - Method in interface org.unix4j.line.Line
Returns the length of the content string returned by Line.getContent(), which is zero for a line without content and positive otherwise.
getContentLength() - Method in class org.unix4j.line.SimpleLine
 
getContentLength() - Method in class org.unix4j.line.SingleCharSequenceLine
 
getContext() - Method in class org.unix4j.processor.AbstractLineProcessor
Returns the execution context that was passed to the constructor
getContextFactory() - Method in class org.unix4j.builder.DefaultCommandBuilder
Returns the context factory used to create contexts for command execution.
getConverterRegistry() - Method in class org.unix4j.context.DefaultExecutionContext
 
getConverterRegistry() - Method in class org.unix4j.context.DerivedExecutionContext
 
getConverterRegistry() - Method in interface org.unix4j.context.ExecutionContext
 
getCount() - Method in class org.unix4j.util.Counter
 
getCurrentDirectory() - Method in class org.unix4j.context.DefaultExecutionContext
 
getCurrentDirectory() - Method in class org.unix4j.context.DerivedExecutionContext
 
getCurrentDirectory() - Method in interface org.unix4j.context.ExecutionContext
Returns the current directory, never null.
getCurrentMethodStackTraceElement() - Static method in class org.unix4j.util.StackTraceUtil
Returns the stack trace element corresponding to the direct caller method, that is, the method which calls this method.
getCurrentMethodStackTraceElement(int) - Static method in class org.unix4j.util.StackTraceUtil
Returns the stack trace element belonging to the callerOffsetth caller of the calling method.
getDirectoryOfClassFile(Class<?>) - Static method in class org.unix4j.util.FileUtil
This method returns the parent directory of a given class.
getDirectoryOfClassFile(String) - Static method in class org.unix4j.util.FileUtil
This method returns the parent directory of a given class.
getEnv() - Method in class org.unix4j.context.DefaultExecutionContext
 
getEnv() - Method in class org.unix4j.context.DerivedExecutionContext
 
getEnv() - Method in interface org.unix4j.context.ExecutionContext
 
getEnv() - Static method in class org.unix4j.variable.MapVariableResolver
Returns a variable resolver for the ENV variables.
getExitValue() - Method in exception org.unix4j.command.ExitValueException
Returns the exit value, an int value or error code different from zero that was passed to the constructor of this exception.
getFileInfo() - Method in class org.unix4j.io.FileInput
Returns the file info string, for instance a file path or file name.
getFileInfo(File) - Method in class org.unix4j.io.FileInput
Returns the file info string relative to the given root directory.
getFileNameFilter(String) - Static method in class org.unix4j.util.FileUtil
Returns a file name filter for the specified name.
getFirst() - Method in class org.unix4j.command.JoinedCommand
Returns the first command of this joined command
getForContext(ExecutionContext) - Method in interface org.unix4j.command.Arguments
Returns an arguments object for the given execution context with resolved variables if necessary and possible.
getForContext(ExecutionContext) - Method in class org.unix4j.command.NoOp.Args
 
getForContext(ExecutionContext) - Method in class org.unix4j.operation.AdHocCommand.Args
 
getInput() - Method in exception org.unix4j.command.ExitValueException
Returns the input source that was causing this exception, for instance an input file that was passed to a command.
getInstance() - Static method in class org.unix4j.util.sort.DecimalNumberStringComparator
Returns the instance for the default locale.
getInstance(Locale) - Static method in class org.unix4j.util.sort.DecimalNumberStringComparator
Returns an instance for the specified locale.
getLineEnding() - Method in interface org.unix4j.line.Line
Returns the line ending characters, usually one or two characters such as "\n" or "\r\n".
getLineEnding() - Method in class org.unix4j.line.SimpleLine
 
getLineEnding() - Method in class org.unix4j.line.SingleCharSequenceLine
 
getLineEndingLength() - Method in interface org.unix4j.line.Line
Returns the length of the line ending string returned by Line.getLineEnding(), which is usually one or two and sometimes zero the last line in a file is not terminated with a new line character.
getLineEndingLength() - Method in class org.unix4j.line.SimpleLine
 
getLineEndingLength() - Method in class org.unix4j.line.SingleCharSequenceLine
 
getLocale() - Method in class org.unix4j.context.DefaultExecutionContext
 
getLocale() - Method in class org.unix4j.context.DerivedExecutionContext
 
getLocale() - Method in interface org.unix4j.context.ExecutionContext
 
getMapKeyForVariableName(String) - Method in class org.unix4j.variable.MapVariableResolver
Returns the map key for a given variable name.
getMessage() - Method in exception org.unix4j.command.ExitValueException
 
getName() - Method in class org.unix4j.command.AbstractCommand
 
getName() - Method in interface org.unix4j.command.Command
Returns the name of this command, usually a lower-case string such as "grep" or "ls".
getName() - Method in class org.unix4j.command.JoinedCommand
Returns the joined command names, a string like "echo | grep"
getOperation() - Method in class org.unix4j.operation.AdHocCommand.Args
 
getOutput() - Method in class org.unix4j.processor.AbstractLineProcessor
Returns the output that was passed to the constructor of this line processor, the object to write to when executing the command through the this processor
getOutputDirectoryGivenClass(Class<?>) - Static method in class org.unix4j.util.FileUtil
This method returns the output directory of a given class.
getPathElements(File) - Static method in class org.unix4j.util.FileUtil
Returns all path elements of the given file.
getProperties(String) - Static method in class org.unix4j.util.PropertyUtil
 
getProperty(String, String, String) - Static method in class org.unix4j.util.PropertyUtil
Returns the specified property given the propertyName either from the current user's properties file if it exists or from the given defaultPropertiesFile.
getRelativePath(File, File) - Static method in class org.unix4j.util.FileUtil
Returns the path of the given file relative to the given root.
getRelativePathFor(File) - Method in class org.unix4j.util.RelativePathBase
Returns the path of the given file relative to the base directory.
getRelativePathFor(String) - Method in class org.unix4j.util.RelativePathBase
Returns the path of the given file relative to the base directory.
getRelativeToCurrentDirectory(File) - Method in class org.unix4j.context.DefaultExecutionContext
 
getRelativeToCurrentDirectory(File) - Method in class org.unix4j.context.DerivedExecutionContext
 
getRelativeToCurrentDirectory(File) - Method in interface org.unix4j.context.ExecutionContext
Returns the given file but relative to the current directory if the given file path is not absolute.
getResource(Class<?>, String) - Static method in class org.unix4j.util.ResourceUtil
Returns the specified resource as input stream.
getSecond() - Method in class org.unix4j.command.JoinedCommand
Returns the second command of this joined command
getSettings() - Method in class org.unix4j.util.RelativePathBase
Returns the settings used to construct relative paths.
getSys() - Method in class org.unix4j.context.DefaultExecutionContext
 
getSys() - Method in class org.unix4j.context.DerivedExecutionContext
 
getSys() - Method in interface org.unix4j.context.ExecutionContext
 
getSystemProperties() - Static method in class org.unix4j.variable.MapVariableResolver
Returns a variable resolver for the system properties.
getTempDirectory() - Method in class org.unix4j.context.DefaultExecutionContext
 
getTempDirectory() - Method in class org.unix4j.context.DerivedExecutionContext
 
getTempDirectory() - Method in interface org.unix4j.context.ExecutionContext
 
getTestDir(Class<?>) - Static method in class org.unix4j.util.FileTestUtils
 
getTestFile(Class<?>, String) - Static method in class org.unix4j.util.FileTestUtils
 
getTestFile(Class<?>, String, String) - Static method in class org.unix4j.util.FileTestUtils
 
getTestFile(Class<?>, String, String, String) - Static method in class org.unix4j.util.FileTestUtils
 
getTestFile(File, String, String, String) - Static method in class org.unix4j.util.FileTestUtils
 
getUnixName() - Method in enum org.unix4j.variable.ExecutionContextVariableResolver.Variable
 
getUser() - Method in class org.unix4j.context.DefaultExecutionContext
 
getUser() - Method in class org.unix4j.context.DerivedExecutionContext
 
getUser() - Method in interface org.unix4j.context.ExecutionContext
Returns the user name, usually defined by the "user.name" system property.
getUserDir() - Static method in class org.unix4j.util.FileUtil
Returns the user's current working directory taken from the system property "user.dir".
getUserHome() - Method in class org.unix4j.context.DefaultExecutionContext
 
getUserHome() - Method in class org.unix4j.context.DerivedExecutionContext
 
getUserHome() - Method in interface org.unix4j.context.ExecutionContext
Returns the user home directory, usually defined by the "user.home" system property.
getValue(String) - Method in class org.unix4j.variable.DefaultVariableContext
 
getValue(String, ValueConverter<V>) - Method in class org.unix4j.variable.DefaultVariableContext
 
getValue(String) - Method in class org.unix4j.variable.ExecutionContextVariableResolver
 
getValue(ExecutionContext) - Method in enum org.unix4j.variable.ExecutionContextVariableResolver.Variable
 
getValue(String) - Method in class org.unix4j.variable.MapVariableResolver
 
getValue(String) - Method in class org.unix4j.variable.SimpleVariableResolver
 
getValue(String, ValueConverter<V>) - Method in interface org.unix4j.variable.VariableContext
Returns the value of the variable given by name and converts it into the target type <V> using the given converter.
getValue(String) - Method in interface org.unix4j.variable.VariableResolver
Returns the value currently set for the variable given by its name, or null if no such variable exists.
getValueConverterFor(Class<V>) - Method in class org.unix4j.context.DefaultExecutionContext
 
getValueConverterFor(Class<V>) - Method in class org.unix4j.context.DerivedExecutionContext
 
getValueConverterFor(Class<V>) - Method in interface org.unix4j.context.ExecutionContext
 
getValueConverterFor(Class<V>) - Method in interface org.unix4j.convert.ConverterRegistry
 
getValueConverterFor(Class<V>) - Method in class org.unix4j.convert.DefaultConverterRegistry
 
getVariableContext() - Method in class org.unix4j.context.DefaultExecutionContext
 
getVariableContext() - Method in class org.unix4j.context.DerivedExecutionContext
 
getVariableContext() - Method in interface org.unix4j.context.ExecutionContext
 
getWidth() - Method in class org.unix4j.util.Counter
 
getWriter() - Method in class org.unix4j.io.StringOutput
 
getWriter() - Method in class org.unix4j.io.WriterOutput
Returns the underlying writer that was passed to the constructor.

H

hashCode() - Method in interface org.unix4j.line.Line
The hash code for this line, based on the complete line with line ending.
hashCode() - Method in class org.unix4j.line.SimpleLine
 
hashCode() - Method in class org.unix4j.line.SingleCharSequenceLine
 
hashCode() - Method in class org.unix4j.option.DefaultOptionSet
 
hashObject(Object) - Static method in class org.unix4j.util.HashUtil
Null-safe hash code method for objects.
HashUtil - Class in org.unix4j.util
Utility class with static methods useful to implement hashCode() methods.
hasMoreLines() - Method in class org.unix4j.io.BufferedInput
 
hasMoreLines() - Method in class org.unix4j.io.CompositeInput
 
hasMoreLines() - Method in interface org.unix4j.io.Input
Returns true if there are more lines to be read.
hasMoreLines() - Method in class org.unix4j.io.NullInput
 
hasMoreLines() - Method in class org.unix4j.io.ReaderInput
 

I

increment() - Method in class org.unix4j.util.Counter
 
increment(long) - Method in class org.unix4j.util.Counter
 
indexOfIgnoreCase(String, String) - Static method in class org.unix4j.util.StringUtil
Returns the index within the source string of the first occurrence of the specified target substring performing case insensitive string comparison.
init() - Method in class org.unix4j.context.DerivedExecutionContext
Initialisation method called from the constructor.
initConverters() - Method in class org.unix4j.convert.DefaultConverterRegistry
 
Input - Interface in org.unix4j.io
Represents a line-by-line input device.
InputLineProcessor - Class in org.unix4j.processor
A line processor for a single input
InputLineProcessor(Input, InputProcessor, LineProcessor) - Constructor for class org.unix4j.processor.InputLineProcessor
 
InputProcessor - Interface in org.unix4j.processor
An InputProcessor is used by a MultipleInputLineProcessor to process line based data from multiple Input devices.
InputStreamConverters - Class in org.unix4j.convert
 
InputStreamConverters() - Constructor for class org.unix4j.convert.InputStreamConverters
 
INSTANCE - Static variable in class org.unix4j.command.NoOp
The singleton instance.
INSTANCE - Static variable in class org.unix4j.io.NullInput
 
INSTANCE - Static variable in class org.unix4j.io.StdInput
The singleton instance.
INSTANCE - Static variable in class org.unix4j.io.StdOutput
The singleton instance.
INSTANCE - Static variable in class org.unix4j.util.sort.ScientificNumberStringComparator
The singleton instance.
INTEGER_TO_CHARACTER - Static variable in class org.unix4j.convert.CharacterConverters
 
IntegerConverters - Class in org.unix4j.convert
 
IntegerConverters() - Constructor for class org.unix4j.convert.IntegerConverters
 
isCurrent() - Method in enum org.unix4j.util.OS
 
isCurrent(String) - Method in enum org.unix4j.util.OS
 
isEmpty() - Method in class org.unix4j.option.DefaultOptionSet
Returns true if no option is set.
isSet(E) - Method in class org.unix4j.option.DefaultOptionSet
 
isSet(O) - Method in interface org.unix4j.option.OptionSet
Returns true if the specified option is set and false otherwise
isVariable(String) - Static method in class org.unix4j.util.Variables
Returns true if the given expression represents an encoded variable.
isVariable(String) - Static method in class org.unix4j.variable.Arg
Returns true if and only if the given name starts with the "$" prefix.
isWildcardFileName(String) - Static method in class org.unix4j.util.FileUtil
Returns true if the given name or path contains unescaped wildcard characters.
isWithinRange(int) - Method in class org.unix4j.util.AbstractRange
 
isWithinRange(int) - Method in class org.unix4j.util.CompositeRange
 
isWithinRange(int) - Method in class org.unix4j.util.Range
 
iterator() - Method in class org.unix4j.io.AbstractInput
 
iterator() - Method in interface org.unix4j.io.Input
Returns an immutable iterator over all lines returned by this input object.
iterator() - Method in class org.unix4j.option.DefaultOptionSet
Returns an iterator over all set options in this OptionSet.
iterator() - Method in interface org.unix4j.option.OptionSet
Returns an iterator over the active options in this option set.

J

JAVA7_CLASS_NAME_SUFFIX - Static variable in class org.unix4j.util.Java7Util
The suffix used for Java 7 classes, the string "7".
Java7Util - Class in org.unix4j.util
Utility class with static methods to help loading a Java 7 version of a class if it is available, and the Java 6 version otherwise.
Java7Util() - Constructor for class org.unix4j.util.Java7Util
 
join(Command<?>) - Method in interface org.unix4j.builder.CommandBuilder
Adds the specified command to the chain of commands held by this builder.
join(Command<?>) - Method in class org.unix4j.builder.DefaultCommandBuilder
 
join(Command<?>) - Method in class org.unix4j.command.AbstractCommand
 
join(Command<?>) - Method in interface org.unix4j.command.Command
Returns a new command representing the combination of this command with next.
join(Command<A>, Command<?>) - Static method in class org.unix4j.command.JoinedCommand
 
join(Command<?>) - Method in class org.unix4j.command.JoinedCommand
 
join(Command<?>) - Method in class org.unix4j.command.NoOp
Returns the given next command eliminating this NoOp command in a join.
join(String[], String) - Static method in class org.unix4j.util.ArrayUtil
 
JoinedCommand<A extends Arguments<A>> - Class in org.unix4j.command
A composite command joining two commands.
JoinedCommand(Command<A>, Command<?>) - Constructor for class org.unix4j.command.JoinedCommand
Constructor with first and second command in the join.

L

last() - Method in class org.unix4j.util.CompositeRange
 
length() - Method in class org.unix4j.line.SimpleLine
 
length() - Method in class org.unix4j.line.SingleCharSequenceLine
 
LF - Static variable in interface org.unix4j.line.Line
The line feed (LF) character '\n' used to encode line endings in UNIX.
Line - Interface in org.unix4j.line
A line is a line string including the line ending character(s).
LINE_ENDING - Static variable in interface org.unix4j.line.Line
Operating system dependent line ending taken from the system property "line.separator".
LineComparator - Class in org.unix4j.util.sort
Comparator for a Line without line ending; forwards the comparison of the content string to a delegate string comparator.
LineOperation - Interface in org.unix4j.operation
An interface implemented by simple ad-hoc commands that are taking a single line as input.
LineProcessor - Interface in org.unix4j.processor
A LineProcessor is a program or device that processes line based data.
LineUtil - Class in org.unix4j.util
Contains static utility methods related to Line objects.
ListConverters - Class in org.unix4j.convert
 
ListConverters() - Constructor for class org.unix4j.convert.ListConverters
 
loadClass(Class<T>) - Static method in class org.unix4j.util.Java7Util
Returns the Java 7 version of the given class if it exists and can be loaded, and the given baseClass otherwise.
LONG_TO_DATE - Static variable in class org.unix4j.convert.DateConverters
 
LongConverters - Class in org.unix4j.convert
 
LongConverters() - Constructor for class org.unix4j.convert.LongConverters
 

M

MapVariableResolver - Class in org.unix4j.variable
Variable resolver based on an existing map, where the keys may or may not be prefixed with the variable dollar sign '$'.
MapVariableResolver(Map<?, ?>) - Constructor for class org.unix4j.variable.MapVariableResolver
Constructor with name-to-value map.
multiple(File...) - Static method in class org.unix4j.io.FileInput
Creates a new FileInput object for each of the specified files and resturns a list with all input objects.
multiple(List<File>) - Static method in class org.unix4j.io.FileInput
Creates a new FileInput object for each of the specified files and resturns a list with all input objects.
MultipleInputLineProcessor - Class in org.unix4j.processor
A line processor for multiple inputs processing the same operation for each input object individually.
MultipleInputLineProcessor(List<? extends Input>, InputProcessor, LineProcessor) - Constructor for class org.unix4j.processor.MultipleInputLineProcessor
Constructor with input objects (usually file operands of the command) and the input processor of the command that reads from the standard input.

N

NAME - Static variable in class org.unix4j.command.NoOp
The "nop" command name.
NAME - Static variable in class org.unix4j.operation.AdHocCommand
The "adhoc" name for this command.
name() - Method in interface org.unix4j.option.Option
Returns the option name, usually the same as the enum constant name.
newInstance(Class<T>, T) - Static method in class org.unix4j.util.Java7Util
Returns a new instance of the Java 7 version of the given class if it exists and can be instantiated.
NoOp - Class in org.unix4j.command
A command that performs no operation.
NoOp.Args - Class in org.unix4j.command
Arguments for NoOp.
NoOp.Args() - Constructor for class org.unix4j.command.NoOp.Args
 
NullInput - Class in org.unix4j.io
Input device representing an empty set with no lines.
NullInput() - Constructor for class org.unix4j.io.NullInput
 
NullOutput - Class in org.unix4j.io
Output device writing to /dev/null, which means that all lines written to this device are ignored.
NullOutput(boolean) - Constructor for class org.unix4j.io.NullOutput
NOTE: application code should normally use the NullOutput.DEFAULT or NullOutput.ABORT constants instead of this constructor.
NUMBER_ROUNDED_TO_INTEGER - Static variable in class org.unix4j.convert.IntegerConverters
 
NUMBER_ROUNDED_TO_LONG - Static variable in class org.unix4j.convert.LongConverters
 
NUMBER_TO_INTEGER - Static variable in class org.unix4j.convert.IntegerConverters
 
NUMBER_TO_LONG - Static variable in class org.unix4j.convert.LongConverters
 

O

OBJECT_ARRAY_TO_FILE_ARRAY - Static variable in class org.unix4j.convert.FileArrayConverters
 
OBJECT_ARRAY_TO_LIST - Static variable in class org.unix4j.convert.ListConverters
 
OBJECT_ARRAY_TO_STRING_ARRAY - Static variable in class org.unix4j.convert.StringArrayConverters
 
OBJECT_TO_SINGLETON_ARRAY - Static variable in class org.unix4j.convert.ArrayConverters
 
OBJECT_TO_SINGLETON_FILE_ARRAY - Static variable in class org.unix4j.convert.FileArrayConverters
 
OBJECT_TO_SINGLETON_LIST - Static variable in class org.unix4j.convert.ListConverters
 
OBJECT_TO_SINGLETON_STRING_ARRAY - Static variable in class org.unix4j.convert.StringArrayConverters
 
of(int...) - Static method in class org.unix4j.util.Range
 
operate(ExecutionContext, Line, LineProcessor) - Method in interface org.unix4j.operation.LineOperation
Performs an operation for the given input line.
Option - Interface in org.unix4j.option
Interface usually implemented by option enums.
OptionSet<O extends Option> - Interface in org.unix4j.option
An option set is a very simple unmodifiable set of options.
OptionSetConverters - Class in org.unix4j.convert
 
OptionSetConverters() - Constructor for class org.unix4j.convert.OptionSetConverters
 
OptionSetConverters.AcronymStringToOptionSetConverter<O extends Enum<O> & Option> - Class in org.unix4j.convert
 
OptionSetConverters.AcronymStringToOptionSetConverter(Class<O>) - Constructor for class org.unix4j.convert.OptionSetConverters.AcronymStringToOptionSetConverter
 
OptionSetConverters.IterableOfOptionNameOrAcronymToOptionSetConverter<O extends Enum<O> & Option> - Class in org.unix4j.convert
 
OptionSetConverters.IterableOfOptionNameOrAcronymToOptionSetConverter(Class<O>) - Constructor for class org.unix4j.convert.OptionSetConverters.IterableOfOptionNameOrAcronymToOptionSetConverter
 
OptionSetConverters.NameOrAcronymToOptionConverter<O extends Enum<O> & Option> - Class in org.unix4j.convert
 
OptionSetConverters.NameOrAcronymToOptionConverter(Class<O>) - Constructor for class org.unix4j.convert.OptionSetConverters.NameOrAcronymToOptionConverter
 
OptionSetConverters.OptionNameStringToSingletonSetConverter<O extends Enum<O> & Option> - Class in org.unix4j.convert
 
OptionSetConverters.OptionNameStringToSingletonSetConverter(Class<O>) - Constructor for class org.unix4j.convert.OptionSetConverters.OptionNameStringToSingletonSetConverter
 
OptionSetConverters.OptionSetConverter<O extends Enum<O> & Option> - Class in org.unix4j.convert
 
OptionSetConverters.OptionSetConverter(Class<O>) - Constructor for class org.unix4j.convert.OptionSetConverters.OptionSetConverter
 
OptionSetConverters.OptionToSingletonSetConverter<O extends Enum<O> & Option> - Class in org.unix4j.convert
 
OptionSetConverters.OptionToSingletonSetConverter(Class<O>) - Constructor for class org.unix4j.convert.OptionSetConverters.OptionToSingletonSetConverter
 
optionType() - Method in class org.unix4j.option.DefaultOptionSet
 
optionType() - Method in interface org.unix4j.option.OptionSet
Returns the option type class, usually an enum.
org.unix4j.builder - package org.unix4j.builder
Defines interfaces and implementations used to create a command or a chain of joined commands.
org.unix4j.command - package org.unix4j.command
Declares the basic command interface and contains related classes used by most command implementations.
org.unix4j.context - package org.unix4j.context
Contains interfaces and classes defining the ExecutionContext passed to the execute method of commands.
org.unix4j.convert - package org.unix4j.convert
Defines interfaces and implementations used for value conversions.
org.unix4j.io - package org.unix4j.io
Contains interfaces and classes used to handle input and output of commands.
org.unix4j.line - package 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 - package org.unix4j.operation
Contains the LineOperation interface and the AdHocCommand implementation facilitating the creation of ad-hoc commands.
org.unix4j.option - package org.unix4j.option
Provides interfaces and classes to deal with very simple sets of options.
org.unix4j.processor - package 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 - package org.unix4j.util
Provides a set of utility classes used throughout the unix4j framework.
org.unix4j.util.sort - package org.unix4j.util.sort
Contains interfaces and classes related to sorting.
org.unix4j.variable - package org.unix4j.variable
Defines interfaces and classes to facilitate variables that can be used as command arguments.
OS - Enum in org.unix4j.util
Enum constants for operating systems.
Output - Interface in org.unix4j.io
Represents a line-by-line output device.
OutputStreamConverters - Class in org.unix4j.convert
 
OutputStreamConverters() - Constructor for class org.unix4j.convert.OutputStreamConverters
 

P

parseArgs(String, List<String>, Object...) - Static method in class org.unix4j.util.ArgsUtil
Returns a map with the options and operands.
PatternConverters - Class in org.unix4j.convert
 
PatternConverters() - Constructor for class org.unix4j.convert.PatternConverters
 
processLine(Line) - Method in class org.unix4j.io.BufferedOutput
 
processLine(Line) - Method in class org.unix4j.io.NullOutput
 
processLine(Line) - Method in interface org.unix4j.io.Output
Writes a line to the output.
processLine(Line) - Method in class org.unix4j.io.WriterOutput
 
processLine(Input, Line, LineProcessor) - Method in class org.unix4j.processor.DefaultInputProcessor
 
processLine(Line) - Method in class org.unix4j.processor.InputLineProcessor
 
processLine(Input, Line, LineProcessor) - Method in interface org.unix4j.processor.InputProcessor
Processes a single line and returns true if this InputProcessor is ready to process more lines.
processLine(Line) - Method in interface org.unix4j.processor.LineProcessor
Processes a single line and returns true if this LineProcessor is ready to process more lines.
processLine(Line) - Method in class org.unix4j.processor.MultipleInputLineProcessor
 
PropertyUtil - Class in org.unix4j.util
Class with static utility methods if one has to deal with Properties.

R

Range - Class in org.unix4j.util
Range offers ways of specifying a range of numbers.
RangeConverters - Class in org.unix4j.convert
 
RangeConverters() - Constructor for class org.unix4j.convert.RangeConverters
 
ReaderInput - Class in org.unix4j.io
Input device based on a Reader forming the base for most input devices; handles parsing and recognition of lines.
ReaderInput(Reader) - Constructor for class org.unix4j.io.ReaderInput
Constructor with reader.
readLine() - Method in class org.unix4j.io.BufferedInput
 
readLine() - Method in class org.unix4j.io.CompositeInput
 
readLine() - Method in interface org.unix4j.io.Input
Reads the next line.
readLine() - Method in class org.unix4j.io.NullInput
 
readLine() - Method in class org.unix4j.io.ReaderInput
 
RedirectInputLineProcessor - Class in org.unix4j.processor
A line processor redirects a given Input stream to the standard input of a command.
RedirectInputLineProcessor(Input, LineProcessor) - Constructor for class org.unix4j.processor.RedirectInputLineProcessor
Constructor with input object (usually a file operand of the command) and the command processor that reads from the standard input.
RedirectInputLineProcessor(List<? extends Input>, LineProcessor) - Constructor for class org.unix4j.processor.RedirectInputLineProcessor
Constructor with multiple input objects (usually file operands of the command) and the command processor that reads from the standard input.
registerValueConverter(Class<V>, ValueConverter<V>) - Method in class org.unix4j.convert.DefaultConverterRegistry
 
RelativePathBase - Class in org.unix4j.util
This class represents a base directory for relative paths.
RelativePathBase(String) - Constructor for class org.unix4j.util.RelativePathBase
Constructor with base directory for relative paths using RelativePathBase.DEFAULT settings to construct relative paths.
RelativePathBase(File) - Constructor for class org.unix4j.util.RelativePathBase
Constructor with base directory for relative paths using RelativePathBase.DEFAULT settings to construct relative paths.
RelativePathBase(String, RelativePathBase.Settings) - Constructor for class org.unix4j.util.RelativePathBase
Constructor with base directory for relative paths using the specified settings to construct relative paths.
RelativePathBase(File, RelativePathBase.Settings) - Constructor for class org.unix4j.util.RelativePathBase
Constructor with base directory for relative paths using the specified settings to construct relative paths.
RelativePathBase.Settings - Interface in org.unix4j.util
Settings used to construct relative paths.
removeVariableResolver(VariableResolver) - Method in class org.unix4j.variable.DefaultVariableContext
 
removeVariableResolver(VariableResolver) - Method in interface org.unix4j.variable.VariableContext
Removes the specified variable resolver if it exists and does nothing otherwise.
reset() - Method in interface org.unix4j.builder.CommandBuilder
Resets this command builder to its initial state.
reset() - Method in class org.unix4j.builder.DefaultCommandBuilder
 
reset() - Method in class org.unix4j.util.Counter
 
resolve(String, Map<String, String>) - Static method in class org.unix4j.util.Variables
If expression represents an encoded variable, it is resolved using the values in the given map.
ResourceInput - Class in org.unix4j.io
Input device reading a resource using Class.getResourceAsStream(String).
ResourceInput(String) - Constructor for class org.unix4j.io.ResourceInput
Creates an input object opening the given resource using Class.getResourceAsStream(String).
ResourceUtil - Class in org.unix4j.util
Class with static utility methods to load package or file resources.
reverse(Comparator<T>) - Static method in class org.unix4j.util.sort.ReverseOrderComparator
Reverses the given comparator and returns the resulting comparator.
ReverseOrderComparator<T> - Class in org.unix4j.util.sort
Forwards calls to another Comparator but reverses the order.
ROOT - Static variable in class org.unix4j.util.FileUtil
 
ROOT_UNIX - Static variable in class org.unix4j.util.FileUtil
 
ROOT_WINDOWS - Static variable in class org.unix4j.util.FileUtil
 
ROOT_WINDOWS_NETWORK - Static variable in class org.unix4j.util.FileUtil
 
ROUND - Static variable in class org.unix4j.convert.IntegerConverters
 
ROUND - Static variable in class org.unix4j.convert.LongConverters
 

S

ScientificNumberStringComparator - Class in org.unix4j.util.sort
Comparison based on Double floating point numbers.
set(E) - Method in class org.unix4j.option.DefaultOptionSet
Sets the specified option.
setAll(E...) - Method in class org.unix4j.option.DefaultOptionSet
Sets all specified options.
setAll(Collection<? extends E>) - Method in class org.unix4j.option.DefaultOptionSet
Sets all specified options.
setAll(OptionSet<E>) - Method in class org.unix4j.option.DefaultOptionSet
Sets all the options contained in the specified optionSet.
setConverterRegistry(ConverterRegistry) - Method in class org.unix4j.context.DerivedExecutionContext
 
setCurrentDirectory(File) - Method in class org.unix4j.context.DefaultExecutionContext
 
setCurrentDirectory(String) - Method in class org.unix4j.context.DefaultExecutionContext
 
setCurrentDirectory(File) - Method in class org.unix4j.context.DerivedExecutionContext
 
setCurrentDirectory(String) - Method in class org.unix4j.context.DerivedExecutionContext
 
setEnv(Map<String, String>) - Method in class org.unix4j.context.DerivedExecutionContext
 
setInput(Input) - Method in exception org.unix4j.command.ExitValueException
Sets the input source that was causing this exception, for instance an input file that was passed to a command.
setLocale(Locale) - Method in class org.unix4j.context.DefaultExecutionContext
 
setLocale(Locale) - Method in class org.unix4j.context.DerivedExecutionContext
 
setSys(Properties) - Method in class org.unix4j.context.DerivedExecutionContext
 
setTempDirectory(File) - Method in class org.unix4j.context.DerivedExecutionContext
 
setTempDirectory(String) - Method in class org.unix4j.context.DerivedExecutionContext
 
setUseAcronymFor(E, boolean) - Method in class org.unix4j.option.DefaultOptionSet
Sets the flag indicating whether string representations should use the acronym instead of the long option name for the specified option.
setUseAcronymForAll(boolean) - Method in class org.unix4j.option.DefaultOptionSet
Sets the flag indicating whether string representations should use the acronym instead of the long option name for all options.
setUser(String) - Method in class org.unix4j.context.DerivedExecutionContext
 
setUserHome(File) - Method in class org.unix4j.context.DerivedExecutionContext
 
setUserHome(String) - Method in class org.unix4j.context.DerivedExecutionContext
 
setValue(String, Object) - Method in class org.unix4j.variable.SimpleVariableResolver
Sets the specified value for the variable with the given name.
setVariableContext(VariableContext) - Method in class org.unix4j.context.DerivedExecutionContext
 
SimpleLine - Class in org.unix4j.line
A Line implementation based on two CharSequence's, usually two strings one for the contents and one for the line ending characters.
SimpleLine(CharSequence) - Constructor for class org.unix4j.line.SimpleLine
Constructor with contents and default operating system dependent line ending as defined by Line.LINE_ENDING.
SimpleLine(CharSequence, char) - Constructor for class org.unix4j.line.SimpleLine
Constructor with contents and lineEnding character sequences.
SimpleLine(CharSequence, CharSequence) - Constructor for class org.unix4j.line.SimpleLine
Constructor with contents and lineEnding character sequences.
SimpleVariableResolver - Class in org.unix4j.variable
Simple variable resolver implementation backed by a map of variable names to values.
SimpleVariableResolver() - Constructor for class org.unix4j.variable.SimpleVariableResolver
 
SingleCharSequenceLine - Class in org.unix4j.line
A Line implementation based on a single CharSequence such as a StringBuilder or String.
SingleCharSequenceLine(CharSequence, int) - Constructor for class org.unix4j.line.SingleCharSequenceLine
Constructor with character sequence with the data and the lineEndingLength indicating whether there is one or two characters for the line ending.
SingleCharSequenceLine(CharSequence, int, int, int) - Constructor for class org.unix4j.line.SingleCharSequenceLine
Constructor with character sequence with the data and offset pointing to the first content character of the line.
size() - Method in class org.unix4j.io.BufferedOutput
Returns the number of lines currently stored by this BufferedOutput object.
size() - Method in class org.unix4j.option.DefaultOptionSet
Returns the number of set options in this OptionSet
size() - Method in interface org.unix4j.option.OptionSet
Returns the number of active options in this option set.
SPACE_DELIMITED - Static variable in class org.unix4j.convert.StringArrayConverters
 
splitLines(String) - Static method in class org.unix4j.util.StringUtil
Splits the given string into lines and returns each line as a separate string in the result list.
StackTraceUtil - Class in org.unix4j.util
Utility class to evaluate the StackTraceElement corresponding to a calling method in the caller stack.
startsWithIgnoreCase(String, String) - Static method in class org.unix4j.util.StringUtil
Tests if this string s starts with the specified prefix performing case insensitive string comparison.
StdInput - Class in org.unix4j.io
Input device reading from the standard input stream.
StdInput() - Constructor for class org.unix4j.io.StdInput
Default constructor, application code should use the singleton StdInput.INSTANCE.
StdOutput - Class in org.unix4j.io
Output device writing to the standard output stream.
StdOutput() - Constructor for class org.unix4j.io.StdOutput
Default constructor, application code should use the singleton StdOutput.INSTANCE.
StreamInput - Class in org.unix4j.io
Input device reading from an InputStream.
StreamInput(InputStream) - Constructor for class org.unix4j.io.StreamInput
Constructor with stream forming the basis of this input device.
StreamOutput - Class in org.unix4j.io
Output device writing to an OutputStream.
StreamOutput(OutputStream) - Constructor for class org.unix4j.io.StreamOutput
Constructor with stream to be written to.
STRING - Static variable in class org.unix4j.convert.FileConverters
 
STRING - Static variable in class org.unix4j.convert.PatternConverters
 
STRING - Static variable in class org.unix4j.convert.RangeConverters
 
STRING - Static variable in class org.unix4j.convert.URLConverters
 
STRING_ARRAY_TO_STRING_ARRAY - Static variable in class org.unix4j.convert.StringArrayConverters
 
STRING_TO_CHARACTER - Static variable in class org.unix4j.convert.CharacterConverters
 
STRING_TO_DATE - Static variable in class org.unix4j.convert.DateConverters
 
STRING_TO_INTEGER - Static variable in class org.unix4j.convert.IntegerConverters
 
STRING_TO_LONG - Static variable in class org.unix4j.convert.LongConverters
 
StringArrayConverters - Class in org.unix4j.convert
 
StringArrayConverters() - Constructor for class org.unix4j.convert.StringArrayConverters
 
StringConverters - Class in org.unix4j.convert
 
StringConverters() - Constructor for class org.unix4j.convert.StringConverters
 
StringInput - Class in org.unix4j.io
Input device reading the input from a string.
StringInput(String...) - Constructor for class org.unix4j.io.StringInput
Constructor with lines.
StringInput(Iterable<? extends String>) - Constructor for class org.unix4j.io.StringInput
Constructor with lines.
StringOutput - Class in org.unix4j.io
Output device writing the output lines to a string.
StringOutput() - Constructor for class org.unix4j.io.StringOutput
Constructor for StringOutput that does NOT terminated the last line with a line ending no matter whether the last input line has an empty line ending or not.
StringOutput(boolean) - Constructor for class org.unix4j.io.StringOutput
Constructor with flag indicating whether the last line ending should be written or not when WriterOutput.finish() is called.
StringUtil - Class in org.unix4j.util
Utility class with static methods for strings.
subLine(Line, int, int, boolean) - Static method in class org.unix4j.line.SimpleLine
Returns a sub-line of the given line, similar to a substring or the method SimpleLine.subSequence(int, int).
subSequence(int, int) - Method in class org.unix4j.line.SimpleLine
 
subSequence(int, int) - Method in class org.unix4j.line.SingleCharSequenceLine
 

T

TAB_DELIMITED - Static variable in class org.unix4j.convert.StringArrayConverters
 
To - Interface in org.unix4j.builder
Interface defining command execution and output redirection methods.
toAbsoluteFile(File, File) - Static method in class org.unix4j.util.FileUtil
Returns an absolute file for the given input file, resolving relative paths on the basis of the given currentDirectory.
toDevNull() - Method in class org.unix4j.builder.DefaultCommandBuilder
 
toDevNull() - Method in interface org.unix4j.builder.To
Executes the composite command and does not write the result anywhere.
toEndFrom(int) - Static method in class org.unix4j.util.Range
Creates a range element to include all elements from (and including) the given index to any greater index.
toExitValue() - Method in class org.unix4j.builder.DefaultCommandBuilder
 
toExitValue() - Method in interface org.unix4j.builder.To
Executes the composite command returns its exit value, 0 if the command completes successfully and another command specific error value different from zero if the command throws an ExitValueException.
toFile(String) - Method in class org.unix4j.builder.DefaultCommandBuilder
 
toFile(File) - Method in class org.unix4j.builder.DefaultCommandBuilder
 
toFile(String) - Method in interface org.unix4j.builder.To
Executes the composite command and writes the result to the given file.
toFile(File) - Method in interface org.unix4j.builder.To
Executes the composite command and writes the result to the given file.
toLineList() - Method in class org.unix4j.builder.DefaultCommandBuilder
 
toLineList() - Method in interface org.unix4j.builder.To
Executes the composite command and returns the result as a list containing the output lines.
toList(File...) - Static method in class org.unix4j.util.FileUtil
Returns the specified files in a new mutable array list.
toMultiLineString() - Method in class org.unix4j.io.BufferedInput
Returns a multi-line representation of the lines in this buffer.
toMultiLineString() - Method in class org.unix4j.io.BufferedOutput
Returns a multi-line representation of the lines in this buffer.
toMultiLineString(List<? extends Line>) - Static method in class org.unix4j.util.LineUtil
Returns a multi-line representation of the provided lines.
toOutput(Output) - Method in class org.unix4j.builder.DefaultCommandBuilder
 
toOutput(Output) - Method in interface org.unix4j.builder.To
Executes the composite command and writes the result to the given output.
toOutputStream(OutputStream) - Method in class org.unix4j.builder.DefaultCommandBuilder
 
toOutputStream(OutputStream) - Method in interface org.unix4j.builder.To
Executes the composite command and writes the result to the given stream.
toStdOut() - Method in class org.unix4j.builder.DefaultCommandBuilder
 
toStdOut() - Method in interface org.unix4j.builder.To
Executes the composite command and writes the result to the standard output.
toString() - Method in interface org.unix4j.builder.CommandBuilder
Returns a string representation of the composite command that would be returned by CommandBuilder.build().
toString() - Method in class org.unix4j.builder.DefaultCommandBuilder
 
toString() - Method in class org.unix4j.command.AbstractCommand
 
toString() - Method in interface org.unix4j.command.Arguments
Returns a string representation of the command arguments and options.
toString() - Method in interface org.unix4j.command.Command
Returns a string representation of the command instance including the argument and option values defined for the command.
toString() - Method in class org.unix4j.command.JoinedCommand
Returns the string representation of this joined command, consisting of first and second command including arguments and options.
toString() - Method in class org.unix4j.io.BufferedInput
Returns a list-like representation of the lines contained in this buffer.
toString() - Method in class org.unix4j.io.BufferedOutput
Returns a list-like representation of the lines contained in this buffer.
toString() - Method in class org.unix4j.io.CompositeInput
 
toString() - Method in class org.unix4j.io.FileInput
 
toString() - Method in class org.unix4j.io.FileOutput
 
toString() - Method in class org.unix4j.io.NullInput
 
toString() - Method in class org.unix4j.io.NullOutput
 
toString() - Method in class org.unix4j.io.StringOutput
Return the buffer's current value as a string.
toString() - Method in interface org.unix4j.line.Line
Returns this line including the line ending characters as a string.
toString() - Method in class org.unix4j.line.SimpleLine
 
toString() - Method in class org.unix4j.line.SingleCharSequenceLine
 
toString() - Method in class org.unix4j.operation.AdHocCommand.Args
 
toString() - Method in class org.unix4j.option.DefaultOptionSet
 
toString(OptionSet<O>) - Static method in class org.unix4j.option.DefaultOptionSet
 
toString(Object) - Static method in class org.unix4j.util.ArrayUtil
Returns a (deep) string representation for the given array or throws an exception if array is not an array or null.
toString() - Method in class org.unix4j.util.CompositeRange
 
toString() - Method in class org.unix4j.util.Counter
 
toString() - Method in class org.unix4j.util.Range
 
toString() - Method in class org.unix4j.variable.DefaultVariableContext
 
toString() - Method in class org.unix4j.variable.ExecutionContextVariableResolver
 
toString() - Method in class org.unix4j.variable.MapVariableResolver
 
toString() - Method in class org.unix4j.variable.SimpleVariableResolver
 
toStringList() - Method in class org.unix4j.builder.DefaultCommandBuilder
 
toStringList() - Method in interface org.unix4j.builder.To
Executes the composite command and returns the result as a list containing the output lines without line ending.
toStringResult() - Method in class org.unix4j.builder.DefaultCommandBuilder
 
toStringResult() - Method in interface org.unix4j.builder.To
Executes the composite command and returns the result as string.
toWriter(Writer) - Method in class org.unix4j.builder.DefaultCommandBuilder
 
toWriter(Writer) - Method in interface org.unix4j.builder.To
Executes the composite command and writes the result using the given writer.
TrimBlanksStringComparator - Class in org.unix4j.util.sort
Comparator for strings or character sequences trimming leading or trailing blanks or both before forwarding the actual comparison to a delegate comparator.
TrimBlanksStringComparator(TrimBlanksStringComparator.Mode, Comparator<? super CharSequence>) - Constructor for class org.unix4j.util.sort.TrimBlanksStringComparator
Constructor with mode and delegate comparator performing the actual string comparison on the trimmed strings or character sequences.
TrimBlanksStringComparator.Mode - Enum in org.unix4j.util.sort
Mode defining which end of the strings should be trimmed for blanks.

U

URI - Static variable in class org.unix4j.convert.URLConverters
 
URL - Static variable in class org.unix4j.convert.FileConverters
 
URL - Static variable in class org.unix4j.convert.InputStreamConverters
 
URL - Static variable in class org.unix4j.convert.OutputStreamConverters
 
URL_TO_FILE - Static variable in class org.unix4j.convert.FileConverters
 
URL_TO_STREAM - Static variable in class org.unix4j.convert.InputStreamConverters
 
URL_TO_STREAM - Static variable in class org.unix4j.convert.OutputStreamConverters
 
URLConverters - Class in org.unix4j.convert
 
URLConverters() - Constructor for class org.unix4j.convert.URLConverters
 
URLInput - Class in org.unix4j.io
Input device based on a URL.
URLInput(URL) - Constructor for class org.unix4j.io.URLInput
 
useAcronymFor(E) - Method in class org.unix4j.option.DefaultOptionSet
 
useAcronymFor(O) - Method in interface org.unix4j.option.OptionSet
Returns true if the acronym should be used in for the specified option string representations.

V

ValueConverter<V> - Interface in org.unix4j.convert
A converter for values of an arbitrary type into the target type specified by the generic parameter V.
valueOf(String) - Static method in enum org.unix4j.util.OS
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.unix4j.util.sort.TrimBlanksStringComparator.Mode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.unix4j.variable.ExecutionContextVariableResolver.Variable
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.unix4j.util.OS
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.unix4j.util.sort.TrimBlanksStringComparator.Mode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.unix4j.variable.ExecutionContextVariableResolver.Variable
Returns an array containing the constants of this enum type, in the order they are declared.
VariableContext - Interface in org.unix4j.variable
The variable context is an extension of the somewhat simplistic VariableResolver.
VariableResolver - Interface in org.unix4j.variable
A variable resolver returns a variable value given the name of the variable.
Variables - Class in org.unix4j.util
Variables contains static utility methods related to variables or place holders used as Command arguments.

W

WHITESPACE_DELIMITED - Static variable in class org.unix4j.convert.StringArrayConverters
 
writeLastLineEnding() - Method in class org.unix4j.io.StringOutput
 
writeLastLineEnding() - Method in class org.unix4j.io.WriterOutput
Returns true if the last line ending should be written.
WriterOutput - Class in org.unix4j.io
Output device based on a Writer.
WriterOutput(Writer) - Constructor for class org.unix4j.io.WriterOutput
 
writeTo(Output) - Method in class org.unix4j.io.BufferedOutput
Writes the buffered output lines to the specified output device.

Z

ZERO - Static variable in interface org.unix4j.line.Line
The zero character '\0' used to encode line endings for special purpose use, such as find --print0 | xargs --delimiter0.
$ A B C D E F G H I J L M N O P R S T U V W Z 

Copyright © 2016. All Rights Reserved.