Top Interfaces Classes Enums
[default module]

Package org.apache.tools.ant.util


Interface Summary

Modifier and TypeInterface and Description
public interface
FileNameMapper

Interface to be used by SourceFileScanner.

public interface
Retryable

Simple interface for executing a piece of code.

public interface
TimeoutObserver

Interface for classes that want to be notified by Watchdog.

public interface
Tokenizer

input stream tokenizers implement this interface

Class Summary

Modifier and TypeClass and Description
public class
Base64Converter

BASE 64 encoding of a String or an array of bytes.

public class
ChainedMapper

A ContainerMapper that chains the results of the first nested FileNameMappers into sourcefiles for the second, the second to the third, and so on, returning the resulting mapped filenames from the last nested FileNameMapper.

public class
ClasspathUtils

Offers some helper methods on the Path structure in ant.

public class
CollectionUtils

Deprecated
A set of helper methods related to collection manipulation.
public class
CompositeMapper

A ContainerMapper that unites the results of its constituent FileNameMappers into a single set of result filenames.

public class
ConcatFileInputStream

Special InputStream that will concatenate the contents of an array of files.

public class
ConcatResourceInputStream

Special InputStream that will concatenate the contents of Resources from a single ResourceCollection.

public abstract class
ContainerMapper

A FileNameMapper that contains other FileNameMappers.

public class
DateUtils

Helper methods to deal with date/time formatting with a specific defined format (ISO8601) or a correct pluralization of elapsed time in minutes and seconds.

public class
DeweyDecimal

Utility class to contain version numbers in "Dewey Decimal" syntax.

public class
DOMElementWriter

Writes a DOM tree to a given Writer.

public class
DOMUtils

Some utility methods for common tasks when building DOM trees in memory.

public class
FileTokenizer

Class to read the complete input into a string.

public class
FileUtils

This class also encapsulates methods which allow Files to be referred to using abstract path names which are translated to native system file paths at runtime as well as copying files or setting their last modification time.

public class
FirstMatchMapper

A ContainerMapper that returns the results of its first constituent FileNameMappers that matches.

public class
FlatFileNameMapper

Implementation of FileNameMapper that always returns the source file name without any leading directory information.

public class
GlobPatternMapper

Implementation of FileNameMapper that does simple wildcard pattern replacements.

public class
IdentityMapper

Implementation of FileNameMapper that always returns the source file name.

public class
IdentityStack<E>

Identity Stack.

public class
JavaEnvUtils

A set of helper methods related to locating executables or checking conditions of a given Java installation.

public class
JAXPUtils

Collection of helper methods that retrieve a ParserFactory or Parsers and Readers.

public class
KeepAliveInputStream

Class that can be used to wrap System.in without getting anxious about any client closing the stream.

public class
KeepAliveOutputStream

Class that can be used to wrap System.out and System.err without getting anxious about any client closing the stream.

public class
LayoutPreservingProperties

A Properties collection which preserves comments and whitespace present in the input stream from which it was loaded.

public class
LazyFileOutputStream

Class that delays opening the output file until the first bytes shall be written or the method open has been invoked explicitly.

public class
LazyHashtable<K, V>

Deprecated
Hashtable implementation that allows delayed construction of expensive objects All operations that need access to the full list of objects will call initAll() first.
public class
LeadPipeInputStream

Special PipedInputStream that will not die when the writing Thread is no longer alive.

public abstract class
LineOrientedOutputStream

Invokes processLine whenever a full line has been written to this stream.

public class
LineOrientedOutputStreamRedirector

Output stream which buffer and redirect a stream line by line.

public class
LineTokenizer

class to tokenize the input as lines separated by \r (mac style), \r\n (dos/windows style) or \n (unix style)

public class
LinkedHashtable<K, V>

Subclass of Hashtable that wraps a LinkedHashMap to provide predictable iteration order.

public class
LoaderUtils

ClassLoader utility methods

public class
MergingMapper

Implementation of FileNameMapper that always returns the same target file name.

public class
Native2AsciiUtils

Contains helper methods for Ant's built-in implementation of native2ascii.

public class
NullOutputStream

OutputStream that completely discards all data written to it.

public class
OutputStreamFunneler

Manages a set of OutputStreams to write to a single underlying stream, which is closed only when the last "funnel" has been closed.

public class
PackageNameMapper

Maps directory name matches into a dotted package name.

public class
PermissionUtils

Contains helper methods for dealing with PosixFilePermission or the traditional Unix mode representation of permissions.

public class
ProcessUtil

Process Utilities

public class
PropertyOutputStream

OutputStream that writes an Ant property.

public class
ProxySetup

Code to do proxy setup.

public class
ReaderInputStream

Adapts a Reader as an InputStream.

public class
ReflectUtil

Utility class to handle reflection on java objects.

public class
ReflectWrapper

Utility class to handle reflection on java objects.

public class
RegexpPatternMapper

Implementation of FileNameMapper that does regular expression replacements.

public class
ResourceUtils

This class provides utility methods to process Resources.

public class
RetryHandler

A simple utility class to take a piece of code (that implements Retryable interface) and executes that with possibility to retry the execution in case of IOException.

public class
ScriptFixBSFPath

A class to modify a classloader to support BSF language support.

public abstract class
ScriptRunnerBase

This is a common abstract base case for script runners.

public class
ScriptRunnerCreator

This is a helper class used by ScriptRunnerHelper to create a ScriptRunner based on a classloader and on a language.

public class
ScriptRunnerHelper

A class to help in creating, setting and getting script runners.

public class
public class
SourceFileScanner

Utility class that collects the functionality of the various scanDir methods that have been scattered in several tasks before.

public class
SplitClassLoader

Specialized classloader for tasks that need finer grained control over which classes are to be loaded via Ant's classloader and which should not even if they are available.

public class
public class
StringTokenizer

Class to tokenize the input as areas separated by white space, or by a specified list of delim characters.

public class
StringUtils

A set of helper methods related to string manipulation.

public class
SymbolicLinkUtils

Deprecated Starting Ant 1.10.2, this class is now deprecated in favour of the Java java.nio.file.Files APIs introduced in Java 7, for dealing with symbolic links
Contains methods related to symbolic links - or what Ant thinks is a symbolic link based on the absent support for them in Java.
public class
TaskLogger

A facade that makes logging nicer to use.

public class
TeeOutputStream

A simple T-piece to replicate an output stream into two separate streams

public class
UnicodeUtil

Contains one helper method to create a backslash u escape

public class
UnPackageNameMapper

Maps dotted package name matches to a directory name.

public class
UUEncoder

UUEncoding of an input stream placed into an OutputStream.

public class
VectorSet<E>

Subclass of Vector that won't store duplicate entries and shows HashSet's constant time performance characteristics for the contains method.

public class
Watchdog

Generalization of ExecuteWatchdog

public class
WeakishReference

Deprecated deprecated 1.7; will be removed in Ant1.8 Just use java.lang.ref.WeakReference directly.
These classes are part of some code to reduce memory leaks by only retaining weak references to things on Java1.2+, and yet still work (with leaky hard references) on Java1.1.
public class
WorkerAnt

A worker ant executes a single task in a background thread.

public class
XmlConstants

XML Parser constants, all kept in one place for ease of reuse

public class
XMLFragment

Use this class as a nested element if you want to get a literal DOM fragment of something nested into your task/type.

Enum Summary

Modifier and TypeEnum and Description
public enum
ScriptManager

Script manager enum.