This class provides cache access to Map
collections.
Creates a cached map backed by a
FastMap
.
Creates a cached map backed by a
FastMap
and having the
specified cache size.
Creates a cached map backed by the specified map and having the specified
cache size.
Calculates the appropriate link given the preferred link and the relativePath of the document
Returns the capacity of this
FastMap
.
Capitalise all the words in a String.
Will concatenate 2 paths.
The names of methods commonly used to access a wrapped
exception.
A CDATA sections was just read;
this token is available only from calls to
nextToken().
Center a String in a larger String of size n
.
Center a String in a larger String of size n
.
Remove the last newline, and everything after it from a String.
Remove the last value of a supplied String, and everything after
it from a String.
Remove a newline if and only if it is at the end
of the supplied String.
Remove a value if and only if the String ends with that value.
Remove the last character from a String.
Remove \n
from end of a String if it's there.
A cache of introspection information for a specific class instance.
Removes control characters, including whitespace, from both
ends of this String, handling null
by returning
an empty String.
Clean a directory without deleting it.
Clean a directory without deleting it.
Removes all mappings from this map (optional operation).
Clear out the whole command line.
Removes all mappings from this
FastMap
.
Clear out the arguments but leave the executable in place for another operation.
clone() - method in class org.codehaus.plexus.util.dag.
DAG Returns a shallow copy of this
FastMap
.
clone() - method in class org.codehaus.plexus.util.cli.shell.
Shell Closes the output stream.
Implementation to call the CMD Shell present on Windows NT, 2000 and XP
Commandline objects help handling command lines specifying processes to
execute.
Create a new command line object.
Create a new command line object.
Create a new command line object.
Create a new command line object.
Implementation to call the Command.com Shell present on Windows 95, 98 and Me
An XML comment was just read.
Concatenates elements of an array into a single String.
Called when the StreamPumper pumps a line from the Stream.
Called when the StreamPumper pumps a line from the Stream.
Indicates if this map contains a mapping for the specified key.
Indicates if this
FastMap
contains a mapping for the specified
key.
Returns true
if this map maps one or more keys to the
specified value.
Indicates if this
FastMap
maps one or more keys to the
specified value.
Compare the contents of two files to determine if they are equal or not.
Compare the contents of two Streams to determine if they are equal or not.
Copy bytes from a byte[]
to an OutputStream
.
Copy bytes from a byte[]
to an OutputStream
.
Copy and convert bytes from a byte[]
to chars on a
Writer
.
Copy and convert bytes from a byte[]
to chars on a
Writer
.
Copy and convert bytes from a byte[]
to chars on a
Writer
, using the specified encoding.
Copy and convert bytes from a byte[]
to chars on a
Writer
, using the specified encoding.
Copy bytes from an InputStream
to an OutputStream
.
Copy bytes from an InputStream
to an OutputStream
.
Copy and convert bytes from an InputStream
to chars on a
Writer
.
Copy and convert bytes from an InputStream
to chars on a
Writer
.
Copy and convert bytes from an InputStream
to chars on a
Writer
, using the specified encoding.
Copy and convert bytes from an InputStream
to chars on a
Writer
, using the specified encoding.
Serialize chars from a Reader
to bytes on an OutputStream
, and
flush the OutputStream
.
Serialize chars from a Reader
to bytes on an OutputStream
, and
flush the OutputStream
.
Copy chars from a Reader
to a Writer
.
Copy chars from a Reader
to a Writer
.
Serialize chars from a String
to bytes on an OutputStream
, and
flush the OutputStream
.
Serialize chars from a String
to bytes on an OutputStream
, and
flush the OutputStream
.
Copy chars from a String
to a Writer
.
Copies a entire directory structure.
Copies an entire directory structure but only source files with timestamp later than the destinations'.
Copy file from source to destination.
Copy file from source to destination only if source timestamp is later than the destination timestamp.
Copy file from source to destination.
Copy file from source to destination.
Copy file from source to destination only if source is newer than the target file.
Copy file from source to destination only if source is newer than the target file.
Copies bytes from the URL source
to a file destination
.
Tests whether or not a name matches the start of at least one include
pattern.
How many times is the substring in the larger String.
Creates an argument object.
Creates an argument object and adds it to our list of args.
Creates an argument object.
Creates an argument object and adds it to our list of args.
Create a temporary file in a given directory.
DAG - class org.codehaus.plexus.util.dag.
DAG DAG = Directed Acyclic Graph
DAG() - constructor for class org.codehaus.plexus.util.dag.
DAG Decodes a byte[] containing containing
characters in the Base64 alphabet.
Decodes Base64 data into octects
This default mode for combining children DOMs during merge means that where element names
match, the process will try to merge the element data, rather than putting the dominant
and recessive elements (which share the same element name) as siblings in the resulting
DOM.
This default mode for combining a DOM node during merge means that where element names
match, the process will try to merge the element attributes and values, rather than
overriding the recessive element completely with the dominant one.
Patterns which should be excluded by default.
Returns either the passed in Object
as a String,
or, if the Object
is null
, an empty
String.
Returns either the passed in Object
as a String,
or, if the Object
is null
, a passed
in default String.
Recursively delete a directory.
Recursively delete a directory.
Deletes all whitespaces from a String.
depth - field in class org.codehaus.plexus.util.xml.pull.
MXParser Compare two strings, and return the portion where they differ.
Compare two strings, and return the index at which the strings begin to differ.
Class for scanning a directory for files/directories which match certain
criteria.
The directory walking has finished.
The directory walking has begun.
The included entry that was encountered.
Returns the directory path portion of a file specification string.
The directories which matched at least one include and no excludes
but which a selector discarded.
The directories which matched at least one include and at least one
exclude.
The directories which matched at least one include and no excludes
and were selected.
The directories which were found and did not match any includes.
An XML document type declaration was just read.
simplistic implementation of hash function that has constant
time to compute - so it also means diminishing hash quality for long strings
but for XML parsing it should be good enough ...
This class represents a Map
collection with real-time
behavior.
Creates a
FastMap
with a capacity of
256
entries.
Creates a
FastMap
with the specified capacity.
Creates a
FastMap
, copy of the specified
Map
.
This feature determines whether the document declaration
is processed.
This feature determines whether the parser processes
namespaces.
This feature determines whether namespace attributes are
exposed via the attribute access methods.
If this feature is activated, all validation errors as
defined in the XML 1.0 sepcification are reported.
Returns the filename portion of a file specification string.
The files which matched at least one include and no excludes and
which a selector discarded.
The files which matched at least one include and at least
one exclude.
The files which matched at least one include and no excludes
and were selected.
The files which did not match any includes or selectors.
This class provides basic facilities for manipulating files and file paths.
Find a Method using the methodKey
provided.
Flushes the key/value pairs being cached.
Write all pending output to the stream.
Write all pending output to the stream.
Schedule a file to be deleted when JVM exits.
Formats the specified boolean
and appends the resulting
text to the StringBuffer
argument.
Formats the specified double
and appends the resulting text
to the StringBuffer
argument; the number of significative
digits is deduced from the specifed precision.
Formats the specified double
and appends the resulting text
to the StringBuffer
argument; the number of significand
digits is specified as integer argument.
Formats the specified double
and appends the resulting
text to the StringBuffer
argument.
Formats the specified float
and appends the resulting text
to the StringBuffer
argument; the number of significative
digits is deduced from the specifed precision.
Formats the specified float
and appends the resulting
text to the StringBuffer
argument.
Formats the specified int
in the specified radix and appends
the resulting text to the StringBuffer
argument.
Formats the specified int
and appends the resulting
text (decimal representation) to the StringBuffer
argument.
Formats the specified long
in the specified radix and
appends the resulting text to the StringBuffer
argument.
Formats the specified long
and appends the resulting
text (decimal representation) to the StringBuffer
argument.
Formats the specified short
in the specified radix and
appends the resulting text to the StringBuffer
argument.
Formats the specified short
and appends the resulting
text (decimal representation) to the StringBuffer
argument.
FS - static field in class org.codehaus.plexus.util.
FileUtils Returns the value to which this map maps the specified key.
Returns the value to which this
FastMap
maps the specified key.
Return a list of methods with the same name.
Returns all arguments defined by addLine
,
addValue
or the argument object.
Returns the number of attributes of the current start tag, or
-1 if the current event type is not START_TAG
Returns the number of attributes of the current start tag, or
-1 if the current event type is not START_TAG
Returns the local name of the specified attribute
if namespaces are enabled or just attribute name if namespaces are disabled.
Returns the local name of the specified attribute
if namespaces are enabled or just attribute name if namespaces are disabled.
Returns the namespace URI of the attribute
with the given index (starts from 0).
Returns the namespace URI of the attribute
with the given index (starts from 0).
Returns the prefix of the specified attribute
Returns null if the element has no prefix.
Returns the prefix of the specified attribute
Returns null if the element has no prefix.
Returns the type of the specified attribute
If parser is non-validating it MUST return CDATA.
Returns the type of the specified attribute
If parser is non-validating it MUST return CDATA.
Returns the given attributes value.
Returns the given attributes value.
Returns the attributes value identified by namespace URI and namespace localName.
Returns the attributes value identified by namespace URI and namespace localName.
Returns the base directory to be scanned.
Returns the actual cache size.
Returns a Map
mapping each unique element in
the given Collection
to an Integer
representing the number of occurances of that element
in the Collection
.
Introspects the specified Throwable
to obtain the cause.
Introspects the specified Throwable
to obtain the cause
using a supplied array of method names.
Get the labels used by the most direct children.
Remove everything and return the last value of a supplied String, and
everything after it from a String.
Returns the current column number, starting from 0.
Returns the current column number, starting from 0.
Returns the executable and all defined arguments.
Get the command line for the provided executable and arguments in this shell
Return the constructor, checking the cache first and storing in cache if
not already there..
Returns the current depth of the element.
Returns the current depth of the element.
Get the current depth in the xml indentation
Returns the current depth of the element.
Returns the current depth of the element.
Returns the names of the directories which were selected out and
therefore not ultimately included.
Returns the names of the files which were selected out and
therefore not ultimately included.
Determines the directory component of a filename.
Return a list of directories as String depending options.
Return a list of directories as String depending options.
Returns the entry with the specified key.
Return the list of environment variables
Returns the type of the current event (START_TAG, END_TAG, TEXT, etc.)
Returns the type of the current event (START_TAG, END_TAG, TEXT, etc.)
Returns the names of the directories which matched at least one of the
include patterns and at least one of the exclude patterns.
Returns the names of the files which matched at least one of the
include patterns and at least one of the exclude patterns.
Get extension from filename.
Unknown properties are always returned as false
Return the current value of the feature with given name.
Returns the current value of the given feature.
Return the current value of the feature with given name.
Return a list of files as String depending options.
Return a list of files as String depending options.
Return a list of files as String depending options.
Return the files contained in the directory, using inclusion and exclusion Ant patterns,
including the directory name in each of the files
Return the files contained in the directory, using inclusion and exclusion Ant patterns
Given a directory and an array of extensions return an array of compliant files.
A way to get the entire nested stack-trace of an throwable.
Returns the names of the directories which matched at least one of the
include patterns and none of the exclude patterns.
Returns the names of the files which matched at least one of the
include patterns and none of the exclude patterns.
Returns the input encoding if known, null otherwise.
Returns the input encoding if known, null otherwise.
Retrieves the manager of the Singleton.
Get the string used as line indenter
Returns the current line number, starting from 1.
Returns the current line number, starting from 1.
Return the method, checking the cache first and storing in cache if not
already there..
For START_TAG or END_TAG events, the (local) name of the current
element is returned when namespaces are enabled.
Returns the name of the current element as set by startTag().
For START_TAG or END_TAG events, the (local) name of the current
element is returned when namespaces are enabled.
Returns the name of the current element as set by startTag().
Returns the namespace URI of the current element.
Returns the namespace URI of the current element as set by startTag().
Returns the namespace URI of the current element.
Returns the namespace URI of the current element as set by startTag().
Returns the URI corresponding to the given prefix,
depending on current state of the parser.
Returns the URI corresponding to the given prefix,
depending on current state of the parser.
Returns the numbers of elements in the namespace stack for the given
depth.
Returns the numbers of elements in the namespace stack for the given
depth.
Returns the namespace prefixe for the given position
in the namespace stack.
Returns the namespace prefixe for the given position
in the namespace stack.
Returns the namespace URI for the given position in the
namespace stack
If the position is out of range, an exception is thrown.
Returns the namespace URI for the given position in the
namespace stack
If the position is out of range, an exception is thrown.
Get the String that is nested in between two instances of the
same String.
Get the String that is nested in between two Strings.
Returns the names of the directories which matched none of the include
patterns.
Returns the names of the files which matched none of the include
patterns.
Get the labels used by the most direct ancestors (parents).
Get the list the most direct ancestors (parents).
Return the number of arguments that preceeded this marker.
Return string describing current position of parsers as
text 'STATE [seen %s...] @line:column'.
Returns a short text describing the current parser state, including
the position, a
description of the current event and the data source if known.
Remove and return everything before the first value of a
supplied String from another String.
Returns the prefix of the current element.
Returns the prefix of the current element.
Return namespace that corresponds to given prefix
If there is no prefix bound to this namespace return null
but if generatePrefix is false then return generated prefix.
Return namespace that corresponds to given prefix
If there is no prefix bound to this namespace return null
but if generatePrefix is false then return generated prefix.
Look up the value of a property.
Look up the value of a property.
Look up the value of a property.
Look up the value of a property.
For a given method, retrieves its publicly accessible counterpart.
Determines the relative path of a filename.
Determines the relative path of a filename from a base directory.
Walks through the exception chain to the last element -- the
"root" of the tree -- using
getCause(Throwable)
, and
returns that exception.
Creates a compact stack trace for the root cause of the supplied
throwable.
Finds a setter in the given class for the given field.
Finds all setters in the given class and super classes.
Returns the class of the argument to the setter.
Get the shell to be used in this command line.
Get the command to execute the shell
Returns the shell, executable and all defined arguments.
Get the full command line to execute, including shell command, shell arguments,
executable and executable arguments
Retrieve the singleton instance of a class, given the array of
parameters...
Return the number of pooled objects.
Captures the stack trace associated with the specified
Throwable
object, decomposing it into a list of
stack frames.
A convenient way of extracting the stack trace from an
exception.
Return the list of labels of successor in order decided by topological sort
Return the shell environment variables.
Returns the text content of the current event as String.
Returns the text content of the current event as String.
Returns the buffer that contains the text of the current event,
as well as the start offset and length relevant for the current
event.
Returns the buffer that contains the text of the current event,
as well as the start offset and length relevant for the current
event.
Returns the number of Throwable
objects in the
exception chain.
Returns the list of Throwable
objects in the
exception chain.
Generates a map of the fields and values on a given object,
also pulls from superclasses
Generates a map of the fields and values on a given object,
also pulls from superclasses
Get the underlying writer
Ignorable whitespace was just read.
The patterns for the files to be included.
Searches for a particular sequence within a character sequence
(general purpose parsing function).
Find the first index of any of a set of potential substrings.
Returns the (zero based) index, of the first
Throwable
that matches the specified type in the
exception chain of Throwable
objects with an index
greater than or equal to the specified index, or
-1
if the type is not found.
Returns a Collection
containing the intersection
of the given Collection
s.
This method will be called when an egde leading to given vertex was added
and we want to check if introduction of this edge has not resulted
in apparition of cycle in the graph
Invoke the specified method on the specified target with the specified
params...
Invoke the specified static method with the specified params...
General IO Stream manipulation.
Checks if the String contains only unicode letters.
Checks if the String contains only unicode letters or digits.
Checks if the String contains only unicode letters, digits
or space (' '
).
Checks if the String contains only unicode letters and
space (' '
).
Determines if the OS on which Ant is executing matches the
given OS architecture.
Tests a given byte array to see if it contains
only valid characters within the Base64 alphabet.
Returns if the specified attribute was not in input was declared in XML.
Returns if the specified attribute was not in input was declared in XML.
Whether or not the file system should be treated as a case sensitive
one.
Indicates if there is at least one edee leading to or from given vertex
Indicates if there is at least one edge leading to or from vertex of given label
Returns true
if this map contains no key-value mappings.
Indicates if this
FastMap
contains no key-value mappings.
Checks if a (trimmed) String is null
or empty.
Returns true if the current event is START_TAG and the tag
is degenerated
(e.g.
Returns true if the current event is START_TAG and the tag
is degenerated
(e.g.
Returns whether or not the scanner has included all the files or
directories it has come across so far.
Tests whether or not a name matches against at least one exclude
pattern.
Determines if the OS on which Ant is executing matches the
given OS family.
Tests whether or not a name matches against at least one include
pattern.
Indicates if given vertex has no child
Determines if the OS on which Ant is executing matches the
given OS name.
Whether an Throwable is considered nested or not.
Checks if a String is non null
and is
not empty (length > 0
).
Checks if the String contains only unicode digits.
Checks if the String contains only unicode digits or space
(' '
).
Determines if the OS on which Ant is executing matches the
given OS family, name, architecture and version.
Returns dependency information on these two files.
Indicates if given vertex has no parent
Tests whether a name should be selected.
Checks whether a given file is a symbolic link.
Determines if the OS on which Ant is executing matches the
given OS version.
Checks whether the current TEXT event contains only whitespace
characters.
Checks whether the current TEXT event contains only whitespace
characters.
Checks if the String contains only whitespace.
Returns the next character in the filtered stream, replacing tokens
from the original stream.
Reads from the Stringreader, returning the same value.
Reads characters into a portion of an array.
For maximum efficiency when writing indents the required output is pre-computed
This is internal function that recomputes buffer after user requested chnages.
Using simple dotted expressions extract the values from a MavenProject
instance, For example we might want to extract a value like:
project.build.sourceDirectory
Utility class used to instantiate an object using reflection.
Ensure no instances of Reflector are created...this is a utility.
Exception indicating that an error has occurred while instantiating a class
with the Reflector class.
Create a new ReflectorException.
Create a new ReflectorException with the specified message.
Create a new ReflectorException with the specified message and root
cause.
Create a new ReflectorException with the specified root cause.
Removes the mapping for this key from this map if it is present.
Removes the mapping for this key from this
FastMap
if present.
Removes a DirectoryWalkListener.
Remove extension from filename.
Remove path from filename.
Remove path from filename.
"Flattens" a string by removing all whitespace (space, tab, linefeed,
carriage return, and formfeed).
Renames a file, even if that involves crossing file system boundaries.
Repeat a String n
times to form a
new string.
Replace all occurances of a char within another char.
Replace a char with another char inside a larger String,
for the first max
values of the search char.
Replace all occurances of a String within another String.
Replace a String with another String inside a larger String,
for the first max
values of the search String.
Replace a char with another char inside a larger String, once.
Replace a String with another String inside a larger String, once.
Test if the current event is of the given type and if the
namespace and name do match.
Test if the current event is of the given type and if the
namespace and name do match.
Resolve a file filename
to it's canonical form.
Reverses a String that is delimited by a specific character.
Gets the rightmost n
characters of a String.
Right pad a String with spaces.
Right pad a String with a specified string.
Scans the base directory for files which match at least one include
pattern and don't match any exclude patterns.
Scans the given directory for files and directories.
This is a utility class used by selectors and DirectoryScanner.
Write to an MXSerializer.
Sets the desired OS architecture
Sets the base directory to be scanned.
Sets the base directory to be scanned.
Changes the current capacity of this
FastMap
.
Sets whether or not the file system should be regarded as case sensitive.
Set the current depth in the xml indentation
Set the destination directory.
Sets the list of exclude patterns to use.
Sets the executable to run.
Sets the executable to run.
Sets the desired OS family type
Set feature identified by name (recommended to be URI for uniqueness).
Use this call to change the general behaviour of the parser,
such as namespace processing or doctype declaration handling.
Set feature identified by name (recommended to be URI for uniqueness).
Sets whether or not symbolic links should be followed.
Sets the list of include patterns to use.
Sets the input stream the parser is going to process.
Set the input source for parser to the given reader and
resets the parser.
Set the input source for parser to the given reader and
resets the parser.
Set the string used as line indenter
Set to use binary output stream with given encoding.
Set to use binary output stream with given encoding.
Set the output to the given writer.
Set the output to the given writer.
Should we overwrite files in dest, even if they are newer than the
corresponding entries in the archive?
Binds the given prefix to the given namespace.
Binds the given prefix to the given namespace.
Set the value of a property.
Set the value of a property.
Set the value of a property.
Set the value of a property.
Allows to set the shell to be used in this command line.
Set the shell arguments when calling a command line (not the executable arguments)
(eg.
Set the command to execute the shell (eg.
Set the path to zip-file.
attempts to set the value to the variable in the object passed in
Sets the desired OS version
Sets execution directory.
Sets execution directory.
Sets execution directory.
Sets execution directory.
Set the underlying writer
Shell - class org.codehaus.plexus.util.cli.shell.
Shell
Class that abstracts the Shell functionality,
with subclases for shells that behave particularly, like
Returns the number of key-value mappings in this map.
Returns the number of key-value mappings in this
FastMap
.
This methods is being called when the size of this
FastMap
has changed.
Recursively count size of a directory.
Recursively count size of a directory.
Skip sub tree that is currently porser positioned on.
Top level invocation for a slow scan.
Splits the provided text into a array, using whitespace as the
separator.
Splits the provided text into a array, based on a given separator.
Signalize that parser is at the very beginning of the document
and nothing was read yet.
Write <?xml declaration with encoding (if encoding not null)
and standalone flag (if standalone not null)
This method can only be called just after setOutput.
Write <?xml declaration with encoding (if encoding not null)
and standalone flag (if standalone not null)
This method can only be called just after setOutput.
Writes a start tag with the given namespace and name.
Writes a start tag with the given namespace and name.
Works in concert with the StreamPumper class to
allow implementations to gain access to the lines being
"Pumped".
Read from an InputStream and write the output to an OutputStream.
Create a new StreamFeeder
Class to pump the error stream during Process's runtime.
Wraps a String as an InputStream.
Composes a stream from a String
Wraps a String as an OutputStream.
Common String
manipulation routines.
StringUtils
instances should NOT be constructed in
standard programming.
Remove whitespace from the front and back of a String.
Remove a specified String from the front and back of a
String.
Strip whitespace from the front and back of every String
in the array.
Strip the specified delimiter from the front and back of
every String in the array.
Strip any of a supplied String from the end of a String.
Strip any of a supplied String from the start of a String.
Gets a substring from the specified string avoiding exceptions.
Gets a substring from the specified String avoiding exceptions.
Returns a Collection
containing a - b.
Swaps the case of String.
Pools a bunch of objects .
There are a number of settings to control how the pool operates.
text - field in class org.codehaus.plexus.util.xml.pull.
MXParser Character data was read and will is available by calling getText().
Writes text, where special XML chars are escaped automatically
Writes text, where special XML chars are escaped automatically
Writes text, where special XML chars are escaped automatically
Writes text, where special XML chars are escaped automatically
Get the contents of an InputStream
as a byte[]
.
Get the contents of an InputStream
as a byte[]
.
Get the contents of a Reader
as a byte[]
.
Get the contents of a Reader
as a byte[]
.
Get the contents of a String
as a byte[]
.
Get the contents of a String
as a byte[]
.
Convert from a URL
to a File
.
Breaks a path up into a Vector of path elements, tokenizing on
File.separator
.
Returns a
String
representation of this
FastMap
.
Get the contents of a byte[]
as a String.
Get the contents of a byte[]
as a String.
Get the contents of a byte[]
as a String.
Get the contents of a byte[]
as a String.
Get the contents of an InputStream
as a String.
Get the contents of an InputStream
as a String.
Get the contents of an InputStream
as a String.
Get the contents of an InputStream
as a String.
Get the contents of a Reader
as a String.
Get the contents of a Reader
as a String.
Convert the array of Files into a list of URLs.
Trim the pool down to min size
Removes control characters, including whitespace, from both
ends of this String, handling null
by returning
null
.
This class provides utility methods to parse CharSequence
into primitive types and to format primitive types into
StringBuffer
.
This array can be used to convert the event type integer constants
such as START_TAG or TEXT to
to a string.