An abstract class which implements the Java FileFilter and FilenameFilter
interfaces via the IOFileFilter interface.
Checks to see if the File should be accepted by this filter.
Checks to see if the last modification of the file matches cutoff
favorably.
Checks to see if the file can be read.
Checks to see if the file can be written to.
Checks to see if the file is a directory.
Checks to see if the file is empty.
Checks to see if the file is a file.
Checks to see if the file is hidden.
Checks to see if the File should be accepted by this filter.
Checks to see if the filename matches.
Checks to see if both filters are true.
Checks to see if the filename starts with the prefix.
Checks to see if the size of the file is favorable.
Checks to see if the filename ends with the suffix.
Checks to see if the filename matches one of the wildcards.
Checks to see if the filename matches one of the wildcards.
Checks to see if the File should be accepted by this filter.
Checks to see if the File should be accepted by this filter.
Checks to see if the filename matches.
Checks to see if both filters are true.
Checks to see if the filename starts with the prefix.
Checks to see if the filename matches one of the regular expressions.
Checks to see if the filename ends with the suffix.
Checks to see if the filename matches one of the wildcards.
Checks to see if the filename matches one of the wildcards.
Whether the files accepted will be larger or smaller.
Whether the files accepted will be older or newer.
Adds the specified file filter to the list of file filters at the end of
the list.
Adds a tracker to the list of trackers.
Filters files based on a cutoff time, can filter either newer
files or files equal to or older.
Constructs a new age file filter for files older than (at or before)
a certain cutoff date.
Returns a filter that returns true if the file was last modified after
the specified cutoff date.
Constructs a new age file filter for files on any one side
of a certain cutoff date.
Returns a filter that filters files based on a cutoff date.
Constructs a new age file filter for files older than (at or before)
a certain File (whose last modification time will be used as reference).
Returns a filter that returns true if the file was last modified after
the specified reference file.
Constructs a new age file filter for files on any one side
of a certain File (whose last modification time will be used as
reference).
Returns a filter that filters files based on a cutoff reference file.
Constructs a new age file filter for files equal to or older than
a certain cutoff
Returns a filter that returns true if the file was last modified after
the specified cutoff time.
Constructs a new age file filter for files on any one side
of a certain cutoff.
Returns a filter that filters files based on a cutoff time.
A java.io.FileFilter
providing conditional AND logic across a list of
file filters.
Constructs a new instance of AndFileFilter
.
Constructs a new instance of AndFileFilter
with the specified list of filters.
Constructs a new file filter that ANDs the result of two other filters.
Returns a filter that ANDs the two specified filters.
Returns an IOFileFilter
that wraps the
FileFilter
instance.
Returns an IOFileFilter
that wraps the
FilenameFilter
instance.
Proxy stream that closes and discards the underlying stream as soon as the
end of input has been reached or when the stream is explicitly closed.
Creates an automatically closing proxy for the given input stream.
Return the number of bytes that can be read.
Invokes the delegate's available()
method.
Singleton instance of readable filter
Singleton instance of writable filter
CancelException is thrown in DirectoryWalker to cancel the current
processing.
Constructs a CancelException
with
the file and depth when cancellation occurred.
Constructs a CancelException
with
an appropriate message and the file and depth when
cancellation occurred.
Singleton instance of not readable filter
Singleton instance of not writable filter
This filter accepts File
s that can be read.
This filter accepts File
s that can be written to.
Whether the comparison is case sensitive.
Whether the comparison is case sensitive.
Whether the comparison is case sensitive.
Whether the comparison is case sensitive.
Whether the comparison is case sensitive.
Whether the comparison is case sensitive.
Whether the comparison is case sensitive.
Reader
implementation that can read from String, StringBuffer,
StringBuilder or CharBuffer.
Construct a new instance with the specified character sequence.
Compares two strings using the case-sensitivity rule.
Checks if one string ends with another using the case-sensitivity rule.
Compares two strings using the case-sensitivity rule.
Checks if one string contains another at a specific index using the case-sensitivity rule.
Checks if one string starts with another using the case-sensitivity rule.
Computes the checksum of a file using the specified checksum object.
Computes the checksum of a file using the CRC32 checksum routine.
Checks to see if writing the specified number of bytes would cause the
configured threshold to be exceeded.
A special ObjectInputStream that loads a class based on a specified
ClassLoader
rather than the system default.
Constructs a new ClassLoaderObjectInputStream.
Cleans a directory without deleting it.
Cleans a directory without deleting it.
Closes the underlying input stream and replaces the reference to it
with a
ClosedInputStream
instance.
Closing a ByteArrayOutputStream has no effect.
Close resets the file back to the start and removes any marked position.
Closes underlying output stream, and mark this as closed
Closes stream associated with current thread.
Closes stream associated with current thread.
Closes the underlying Reader
quietly.
Close this input stream - resets the internal state to
the initial values.
Close this Reader - resets the internal state to
the initial values.
Invokes the delegate's close()
method.
Invokes the delegate's close()
method.
Invokes the delegate's close()
method.
Invokes the delegate's close()
method.
Closes the proxied input stream and, if so configured, the associated
output stream.
Closes this output stream and releases any system resources associated
with this stream.
Flag for closing also the associated output stream when this
stream is closed.
True when close() has been called successfully.
Unconditionally close an InputStream
.
Closes the iterator, handling null and ignoring exceptions.
Unconditionally close an OutputStream
.
Unconditionally close an Reader
.
Unconditionally close a Writer
.
Proxy stream that prevents the underlying input stream from being closed.
Creates a proxy that shields the given input stream from being
closed.
Proxy stream that prevents the underlying output stream from being closed.
Creates a proxy that shields the given output stream from being
closed.
Compare the two files using the File.compareTo(File)
method.
Compare the extensions of two files the specified case sensitivity.
Compare the last the last modified date/time of two files.
Compare the names of two files with the specified case sensitivity.
Compare the paths of two files the specified case sensitivity.
Compare using the delegate Comparator, but reversing the result.
Compare the length of two files.
Concatenates a filename to a base path using normal command line style rules.
Defines operations for conditional file filters.
Compares 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.
Compare the contents of two Readers to determine if they are equal or
not.
Converts the case of the input String to a standard format.
Converts a Collection containing java.io.File instanced into array
representation.
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
, 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 bytes from an InputStream
to chars on a
Writer
using the default character encoding of the platform.
Copy and convert bytes from an InputStream
to chars on a
Writer
, using the specified encoding.
Copy bytes from an InputStream
to chars on a
Writer
using the specified character encoding.
Serialize chars from a Reader
to bytes on an
OutputStream
, and flush the OutputStream
.
Copy chars from a Reader
to bytes on an
OutputStream
using the default character encoding of the
platform, and calling flush.
Copy chars from a Reader
to bytes on an
OutputStream
using the specified character encoding, and
calling flush.
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
.
Copy chars from a String
to a Writer
.
Copies a whole directory to a new location preserving the file dates.
Copies a whole directory to a new location.
Copies a filtered directory to a new location preserving the file dates.
Copies a filtered directory to a new location.
Copies a directory to within another directory preserving the file dates.
Copies a file to a new location preserving the file date.
Copies a file to a new location.
Copies a file to a directory preserving the file date.
Copies a file to a directory optionally preserving the file date.
Copy bytes from a large (over 2GB) InputStream
to an
OutputStream
.
Copy chars from a large (over 2GB) Reader
to a Writer
.
Copies bytes from the URL source
to a file
destination
.
This class provides static utility methods for buffered
copying between sources (InputStream
, Reader
,
String
and byte[]
) and destinations
(OutputStream
, Writer
, String
and
byte[]
).
Instances should NOT be constructed in standard programming.
The total count of bytes written.
The count of bytes that have passed.
The count of bytes that have passed.
A decorating input stream that counts the number of bytes that have passed
through the stream so far.
Constructs a new CountingInputStream.
A decorating output stream that counts the number of bytes that have passed
through the stream so far.
Constructs a new CountingOutputStream.
The index of the current buffer.
The output stream to which data will be written at any given time.
The cutoff time threshold.
The default size of the buffer.
The default buffer size to use.
Singleton default comparator instance
Singleton reverse default comparator instance
Compare two files using the default File.compareTo(File)
method.
An output stream which will retain data in memory until a specified
threshold is reached, and only then commit it to disk.
Constructs an instance of this class which will trigger an event at the
specified threshold, and save data to a file beyond that point.
Constructs an instance of this class which will trigger an event at the
specified threshold, and save data to a temporary file beyond that point.
This class turns a Java FileFilter or FilenameFilter into an IO FileFilter.
Constructs a delegate file filter around an existing FileFilter.
Constructs a delegate file filter around an existing FilenameFilter.
Deletes the file associated with this tracker instance.
Deletes the file object, which may be a file or a directory.
Deletes a directory recursively.
Schedules a directory recursively for deletion on JVM exit.
Deletes the file object, which may be a file or a directory.
Deletes a file, never throwing an exception.
The strategy for deleting files.
Data written to this stream is forwarded to a stream that has been associated
with this thread.
Data written to this stream is forwarded to a stream that has been associated
with this thread.
The file depth when the exception was thrown.
The limit on the directory depth to walk.
The system directory separator character.
The Unix directory separator character.
The Windows directory separator character.
The directory to use for temporary files.
Singleton instance of directory filter.
This filter accepts File
s that are directories.
Returns a filter that checks if the file is a directory.
Abstract class that walks through a directory hierarchy and provides
subclasses with convenient hooks to add specific behaviour.
Construct an instance with no filtering and unlimited depth.
Construct an instance with a filter and limit the depth navigated to.
Construct an instance with a directory and a file filter and an optional
limit on the depth navigated to.
Internal copy directory method.
Internal copy file method.
Actually deletes the file object, which may be a file or a directory.
Does the work of getting the path.
Does the work of getting the path.
Internal method to perform the normalization.
Dump an array of bytes to an OutputStream.
Dump a byte value into a StringBuffer.
Dump a long value into a StringBuffer.
Singleton instance of false filter.
A file filter that always returns false.
Returns a filter that always returns false.
The file being processed when the exception was thrown.
Singleton instance of file filter
Keeps track of files awaiting deletion, and deletes them when an associated
marker object is reclaimed by the garbage collector.
Keeps track of files awaiting deletion, and deletes them when an associated
marker object is reclaimed by the garbage collector.
Strategy for deleting files.
This filter accepts File
s that are files (not directories).
Returns a filter that checks if the file is a file (and not a directory).
The list of file filters.
The list of file filters.
Useful utilities for working with file filters.
FileFilterUtils is not normally instantiated.
General filename and filepath manipulation utilities.
Instances should NOT be constructed in standard programming.
General File System utilities.
Instances should NOT be constructed in standard programming.
General file manipulation utilities.
Instances should NOT be constructed in standard programming.
Writer of files that allows the encoding to be set.
Constructs a FileWriterWithEncoding with a file encoding.
Constructs a FileWriterWithEncoding with a file encoding.
Constructs a FileWriterWithEncoding with a file encoding.
Constructs a FileWriterWithEncoding with a file encoding.
Constructs a FileWriterWithEncoding with a file encoding.
Constructs a FileWriterWithEncoding with a file encoding.
Constructs a FileWriterWithEncoding with a file encoding.
Constructs a FileWriterWithEncoding with a file encoding.
Constructs a FileWriterWithEncoding with a file encoding.
Constructs a FileWriterWithEncoding with a file encoding.
Constructs a FileWriterWithEncoding with a file encoding.
Constructs a FileWriterWithEncoding with a file encoding.
The total count of bytes in all the filled buffers.
The file filter to use to filter files and directories.
Ensures that the stream is closed before it gets garbage-collected.
A flag indicating if the iterator has been fully read.
Flushes stream associated with current thread.
Invokes the delegate's flush()
method.
Invokes the delegate's flush()
method.
Flushes this output stream and forces any buffered output bytes to be
written out.
The singleton instance for forced file deletion, which always deletes,
even if the file represents a non-empty directory.
Schedules a file to be deleted when JVM exits.
Force file deletion strategy.
Makes a directory, including any necessary but nonexistent parent
directories.
Factory method to create an IOCase from a name.
Returns the free space on a drive or volume by invoking
the command line.
Returns the free space on a drive or volume in kilobytes by invoking
the command line.
Returns the free space on a drive or volume in a cross-platform manner.
Find free space on the *nix platform using the 'df' command.
Find free space on the Windows platform using the 'dir' command.
Gets the base name, minus the full path and extension, from a full filename.
Return the appropriate byte[]
buffer
specified by index.
The number of bytes that have passed through this stream.
The number of bytes that have passed through this stream.
Returns the number of bytes that have been written to this output stream.
The number of bytes that have passed through this stream.
The number of bytes that have passed through this stream.
Returns the data for this output stream as an array of bytes, assuming
that the data has been retained in memory.
Return the depth when the operation was cancelled.
Gets the extension of a filename.
Returns either the output file specified in the constructor or
the temporary file created or null.
Return the file when the operation was cancelled.
Returns this conditional file filter's list of file filters.
Gets the full path from a full filename, which is the prefix + path.
Gets the full path from a full filename, which is the prefix + path,
and also excluding the final directory separator.
Returns the singleton instance, which is used by the deprecated, static methods.
Gets the name of the constant.
Gets the name minus the path from a full filename.
Gets the path from a full filename, which excludes the prefix.
Gets the path from a full filename, which excludes the prefix, and
also excluding the final directory separator.
Return the current position.
Return the current position.
Gets the prefix from a full filename, such as C:/
or ~/
.
Returns the length of the filename prefix, such as C:/
or ~/
.
Return the size this InputStream
emulates.
Return the size this Reader
emulates.
Returns the current output stream.
Utility method to retrieve stream bound to current thread (if any).
Utility method to retrieve stream bound to current thread (if any).
Returns the underlying output stream, to which the corresponding
OutputStream
methods in this class will ultimately delegate.
Returns the threshold, in bytes, at which an event will be triggered.
Retrieve the number of files currently being tracked, and therefore
awaiting deletion.
Retrieve the number of files currently being tracked, and therefore
awaiting deletion.
Returns the index of the last extension separator character, which is a dot.
Returns the index of the last directory separator character.
Operating system state flag for error.
Initialise the wrapped file writer.
Initialise the wrapped file writer.
Finds files within a given directory (and optionally its
subdirectories).
The constant for case insensitive regardless of operating system.
Singleton instance of directory filter.
Singleton instance of false filter.
Singleton instance, used mainly for testing.
Singleton instance of true filter.
Enumeration of IO case sensitivity.
Subclasses IOException with the Throwable
constructors missing before Java 6.
Constructs a new instance with the given message and cause.
Constructs a new instance with the given cause.
An interface which brings the FileFilter and FilenameFilter
interfaces together.
General IO stream manipulation utilities.
Instances should NOT be constructed in standard programming.
Does the object represent case sensitive comparison.
Checks whether the extension of the filename is one of those specified.
Checks whether the extension of the filename is that specified.
Checks whether the extension of the filename is one of those specified.
Tests if the specified File
is newer than the specified
Date
.
Tests if the specified File
is newer than the reference
File
.
Tests if the specified File
is newer than the specified
time reference.
Tests if the specified File
is older than the specified
Date
.
Tests if the specified File
is older than the reference
File
.
Tests if the specified File
is older than the specified
time reference.
Determines whether or not the data for this output stream has been
retained in memory.
Checks if the character is a separator.
Determines if Windows file system is in use.
Determines whether or not the configured threshold has been exceeded for
this output stream.
Overridable method to validate each line that is returned.
Allows iteration over the files in given directory (and optionally
its subdirectories).
Allows iteration over the files in a given directory (and optionally
its subdirectories) which match an array of extensions.
Last modified comparator instance
Reverse last modified comparator instance
Compare the last modified date/time of two files for order
(see File.lastModified()
).
The extension for the lock file.
The system line separator string.
The Unix line separator string.
The Windows line separator string.
An Iterator over the lines in a Reader
.
Returns an Iterator for the lines in a File
using the default encoding for the VM.
Returns an Iterator for the lines in a File
.
Return an Iterator for the lines in an InputStream
, using
the character encoding specified (or default encoding if null).
Return an Iterator for the lines in a Reader
.
Constructs an iterator of the lines for a Reader
.
Finds files within a given directory (and optionally its
subdirectories).
Finds files within a given directory (and optionally its subdirectories)
which match an array of extensions.
FileWriter that will create and honor lock files to allow simple
cross thread file lock handling.
Constructs a LockableFileWriter.
Constructs a LockableFileWriter.
Constructs a LockableFileWriter.
Constructs a LockableFileWriter with a file encoding.
Constructs a LockableFileWriter with a file encoding.
Constructs a LockableFileWriter.
Constructs a LockableFileWriter.
Constructs a LockableFileWriter.
The name of the strategy.
name - field in class org.apache.commons.io.
IOCase The enumeration name.
Reverse system sensitive name comparator instance (see
IOCase.SYSTEM
)
Compare the names of two files for order (see File.getName()
).
Construct a case sensitive file name comparator instance.
Construct a file name comparator instance with the specified case-sensitivity.
Filters filenames for a certain name.
Constructs a new case-sensitive name file filter for a list of names.
Constructs a new name file filter for a list of names specifying case-sensitivity.
Returns a filter that returns true if the filename matches the specified text.
Constructs a new case-sensitive name file filter for a single name.
Construct a new name file filter specifying case-sensitivity.
Constructs a new case-sensitive name file filter for an array of names.
Constructs a new name file filter for an array of names specifying case-sensitivity.
The filenames to search for
Makes a new buffer available either by allocating
a new one or re-cycling an existing one.
Returns the next line in the wrapped Reader
.
Returns the next line in the wrapped Reader
.
The singleton instance for normal file deletion, which does not permit
the deletion of directories that are not empty.
Normalizes a path, removing double and single dot path steps.
Normalizes a path, removing double and single dot path steps,
and removing any final directory separator.
Singleton instance of not-empty filter
This filter produces a logical NOT of the filters specified.
Returns a filter that NOTs the specified filter.
Constructs a new file filter that NOTs the result of another filters.
A functional, light weight InputStream
that emulates
a stream of a specified size.
Create an InputStream
that emulates a specified size
which supports marking and does not throw EOFException.
Create an InputStream
that emulates a specified
size with option settings.
This OutputStream writes all data to the famous /dev/null.
A functional, light weight Reader
that emulates
a reader of a specified size.
Create a Reader
that emulates a specified size
which supports marking and does not throw EOFException.
Create a Reader
that emulates a specified
size with option settings.
This Writer
writes all data to the famous /dev/null.
Constructs a new NullWriter.
The number of bytes in a gigabyte.
The number of bytes in a kilobyte.
The number of bytes in a megabyte.
Opens a FileInputStream
for the specified file, providing better
error messages than simply calling new FileInputStream(file)
.
Opens a FileOutputStream
for the specified file, checking and
creating the parent directory if it does not exist.
Opens the process to the operating system.
A java.io.FileFilter
providing conditional OR logic across a list of
file filters.
Constructs a new instance of OrFileFilter
.
Constructs a new instance of OrFileFilter
with the specified filters.
Returns a filter that ORs the two specified filters.
Constructs a new file filter that ORs the result of two other filters.
This package defines utility classes for working with streams, readers,
writers and files.
This package provides various java.util.Comparator
implementations
for java.io.File
s.
This package defines an interface (IOFileFilter) that combines both
java.io.FileFilter
and java.io.FilenameFilter
.
This package provides implementations of input classes, such as
InputStream
and Reader
.
This package provides implementations of output classes, such as
OutputStream
and Writer
.
The operating system flag.
Operating system state flag for neither Unix nor Windows.
The separator character that is the opposite of the system separator.
The file to which output will be directed if the threshold is exceeded.
Parses the bytes from a string.
Parses the Windows dir response last line
The full path to the file being tracked.
Reverse system sensitive path comparator instance (see
IOCase.SYSTEM
)
Compare the path of two files for order (see File.getPath()
).
Construct a case sensitive file path comparator instance.
Construct a file path comparator instance with the specified case-sensitivity.
The regular expression pattern that will be used to match filenames
Operating system state flag for Posix flavour Unix.
The temporary file prefix.
The filename prefixes to search for
Filters filenames for a certain prefix.
Constructs a new Prefix file filter for a list of prefixes.
Constructs a new Prefix file filter for a list of prefixes
specifying case-sensitivity.
Returns a filter that returns true if the filename starts with the specified text.
Constructs a new Prefix file filter for a single prefix.
Constructs a new Prefix file filter for a single prefix
specifying case-sensitivity.
Constructs a new Prefix file filter for any of an array of prefixes.
Constructs a new Prefix file filter for any of an array of prefixes
specifying case-sensitivity.
Return a byte value for the read()
method.
Process the bytes for the read(byte[], offset, length)
method.
Return a character value for the read()
method.
Process the characters for the read(char[], offset, length)
method.
A Proxy stream which acts as expected, that is it passes the method
calls on to the proxied stream and doesn't change which methods are
being called.
Constructs a new ProxyInputStream.
A Proxy stream which acts as expected, that is it passes the method
calls on to the proxied stream and doesn't change which methods are
being called.
Constructs a new ProxyOutputStream.
A Proxy stream which acts as expected, that is it passes the method
calls on to the proxied stream and doesn't change which methods are
being called.
Constructs a new ProxyReader.
A Proxy stream which acts as expected, that is it passes the method
calls on to the proxied stream and doesn't change which methods are
being called.
Constructs a new ProxyWriter.
Reads and returns a single byte from the underlying input stream.
Returns -1 to indicate that the stream is closed.
Reads the next byte of data adding to the count of bytes received
if a byte is successfully read.
Read byte from stream associated with current thread.
Invokes the delegate's read()
method.
Invokes the delegate's read()
method.
Reads a single byte from the proxied input stream and writes it to
the associated output stream.
Reads and returns bytes from the underlying input stream to the given
buffer.
Reads a number of bytes into the byte array, keeping count of the
number read.
Read some bytes into the specified array.
Invokes the delegate's read(byte[])
method.
Reads bytes from the proxied input stream and writes the read bytes
to the associated output stream.
Reads and returns bytes from the underlying input stream to the given
buffer.
Reads a number of bytes into the byte array at a specific offset,
keeping count of the number read.
Read the specified number bytes into an array.
Invokes the delegate's read(byte[], int, int)
method.
Reads bytes from the proxied input stream and writes the read bytes
to the associated output stream.
Read some characters into the specified array.
Invokes the delegate's read(char[])
method.
Read the sepcified number of characters into the array.
Read the specified number characters into an array.
Invokes the delegate's read(char[], int, int)
method.
Reads the next byte from the input stream.
Singleton instance of read-only filter
Invokes the delegate's read()
method.
Reads the contents of a file into a byte array.
Reads the contents of a file into a String using the default encoding for the VM.
Reads the contents of a file into a String.
Invokes the delegate's read(byte[] data, int, int)
method.
Invokes the delegate's read(byte[] data, int, int)
method.
Not currently supported - throws UnsupportedOperationException
.
Reads the contents of a file line by line to a List of Strings using the default encoding for the VM.
Reads the contents of a file line by line to a List of Strings.
Get the contents of an InputStream
as a list of Strings,
one entry per line, using the default character encoding of the platform.
Get the contents of an InputStream
as a list of Strings,
one entry per line, using the specified character encoding.
Get the contents of a Reader
as a list of Strings,
one entry per line.
Replaces the enumeration from the stream with a real one.
Reads a "double" value from a byte array at a given offset.
Reads a "double" value from an InputStream.
Reads a "float" value from a byte array at a given offset.
Reads a "float" value from an InputStream.
Reads a "int" value from a byte array at a given offset.
Reads a "int" value from an InputStream.
Reads a "long" value from a byte array at a given offset.
Reads a "long" value from an InputStream.
Reads a "short" value from a byte array at a given offset.
Reads a "short" value from an InputStream.
Reads an unsigned integer (32-bit) value from a byte array at a given
offset.
Reads a unsigned integer (32-bit) from an InputStream.
Reads an unsigned short (16-bit) value from a byte array at a given
offset.
Reads a unsigned short (16-bit) from an InputStream.
Invokes the delegate's read()
method.
Not currently supported - throws UnsupportedOperationException
.
Invokes the delegate's ready()
method.
Filters files using supplied regular expression(s).
Construct a new regular expression filter for a compiled regular expression
Construct a new regular expression filter.
Construct a new regular expression filter with the specified flags.
Construct a new regular expression filter with the specified flags case sensitivity.
Removes the extension from a filename.
Removes the specified file filter.
Reset the reader to the last marked position (or the beginning if
mark has not been called).
Reset the stream to the point when mark was last called.
Reset the stream to the point when mark was last called.
Invokes the delegate's reset()
method.
Invokes the delegate's reset()
method.
Set the byte count back to 0.
Set the byte count back to 0.
Resets the byteCount to zero.
Set the byte count back to 0.
Set the byte count back to 0.
Resolve a class specified by the descriptor using the
specified ClassLoader or the super ClassLoader.
Reverses the result of comparing two objects using
the delegate Comparator
.
Construct an instance with the sepecified delegate Comparator
.
Run the reaper thread that will delete files as their associated
marker objects are reclaimed by the garbage collector.
Converts all separators to the system separator.
Converts all separators to the Unix separator of forward slash.
Converts all separators to the Windows separator of backslash.
Defines the serial version UID.
Sets the list of file filters, replacing any previously configured
file filters on this filter.
Return the current size of the byte array.
Size comparator instance - directories are treated as zero size
Reverse size comparator instance - directories are treated as zero size
Construct a file size comparator instance (directories treated as zero size).
Construct a file size comparator instance specifying whether the size of
the directory contents should be aggregated.
Filters files based on size, can filter either smaller files or
files equal to or larger than a given threshold.
Returns a filter that returns true if the file is bigger than a certain size.
Constructs a new size file filter for files equal to or
larger than a certain size.
Returns a filter that filters based on file size.
Constructs a new size file filter for files based on a certain size
threshold.
Counts the size of a directory recursively (sum of the length of all files).
Returns a filter that accepts files whose size is >= minimum size
and <= maximum size.
Skip the specified number of characters.
Skips the stream over the specified number of bytes, adding the skipped
amount to the count.
Skip a specified number of bytes.
Skip a specified number of characters.
Invokes the delegate's skip(long)
method.
Invokes the delegate's skip(long)
method.
Invokes the delegate's skip(int)
method.
Splits a string into a number of tokens.
The temporary file suffix.
The filename suffixes to search for
Filters files based on the suffix (what the filename ends with).
Constructs a new Suffix file filter for a list of suffixes.
Constructs a new Suffix file filter for a list of suffixes
specifying case-sensitivity.
Returns a filter that returns true if the filename ends with the specified text.
Constructs a new Suffix file filter for a single extension.
Constructs a new Suffix file filter for a single extension
specifying case-sensitivity.
Constructs a new Suffix file filter for an array of suffixs.
Constructs a new Suffix file filter for an array of suffixs
specifying case-sensitivity.
Whether the sum of the directory's contents should be calculated.
Converts a "double" value between endian systems.
Converts a "float" value between endian systems.
Converts a "int" value between endian systems.
Converts a "long" value between endian systems.
DataInput for systems relying on little endian data formats.
Constructs a SwappedDataInputStream.
Converts a "short" value between endian systems.
The constant for case sensitivity determined by the current operating system.
The system separator character.
InputStream proxy that transparently writes a copy of all bytes read
from the proxied stream to a given OutputStream.
Creates a TeeInputStream that proxies the given InputStream
and copies all read bytes to the given OutputStream
.
Creates a TeeInputStream that proxies the given InputStream
and copies all read bytes to the given OutputStream
.
Classic splitter of OutputStream.
Constructs a TeeOutputStream.
Tests that we can write to the lock directory.
The instance to use for the deprecated, static methods.
The threshold at which the event will be triggered.
Whether or not the configured threshold has been exceeded.
An output stream which triggers an event when a specified number of bytes of
data have been written to it.
Constructs an instance of this class which will trigger an event at the
specified threshold.
Switches the underlying output stream from a memory based stream to one
that is backed by disk.
Indicates that the configured threshold has been reached, and that a
subclass should take whatever action necessary on this event.
Gets the curent contents of this byte stream as a byte array.
Get the contents of an InputStream
as a byte[]
.
Get the contents of a Reader
as a byte[]
using the default character encoding of the platform.
Get the contents of a Reader
as a byte[]
using the specified character encoding.
Get the contents of a String
as a byte[]
using the default character encoding of the platform.
Get the contents of an InputStream
as a character array
using the default character encoding of the platform.
Get the contents of an InputStream
as a character array
using the specified character encoding.
Get the contents of a Reader
as a character array.
Convert from a URL
to a File
.
Converts each of an array of URL
to a File
.
Convert the specified string to an input stream, encoded as bytes
using the default character encoding of the platform.
Convert the specified string to an input stream, encoded as bytes
using the specified character encoding.
Provide a String representaion of this file filter.
Provide a String representaion of this file filter.
Provide a String representaion of this file filter.
Gets the curent contents of this byte stream as a string.
Return a String representation of the underlying
character sequence.
Provide a String representaion of this file filter.
Gets a string describing the delete strategy.
Gets a string describing the sensitivity.
Provide a String representaion of this file filter.
Provide a String representaion of this file filter.
Provide a String representaion of this file filter.
Provide a String representaion of this file filter.
Provide a String representaion of this file filter.
Provide a String representaion of this file filter.
Provide a String representaion of this file filter.
Get the contents of a byte[]
as a String
using the default character encoding of the platform.
Get the contents of a byte[]
as a String
using the specified character encoding.
Get the contents of an InputStream
as a String
using the default character encoding of the platform.
Get the contents of an InputStream
as a String
using the specified character encoding.
Get the contents of a Reader
as a String.
Gets the curent contents of this byte stream as a string
using the specified encoding.
Converts an array of file extensions to suffixes for use
with IOFileFilters.
Implements the same behaviour as the "touch" utility on Unix.
Converts each of an array of File
to a URL
.
Track the specified file, using the provided marker, deleting the file
when the marker instance is garbage collected.
Track the specified file, using the provided marker, deleting the file
when the marker instance is garbage collected.
Track the specified file, using the provided marker, deleting the file
when the marker instance is garbage collected.
Track the specified file, using the provided marker, deleting the file
when the marker instance is garbage collected.
Track the specified file, using the provided marker, deleting the file
when the marker instance is garbage collected.
Track the specified file, using the provided marker, deleting the file
when the marker instance is garbage collected.
Track the specified file, using the provided marker, deleting the file
when the marker instance is garbage collected.
Track the specified file, using the provided marker, deleting the file
when the marker instance is garbage collected.
Inner class which acts as the reference for a file pending deletion.
Constructs an instance of this class from the supplied parameters.
Collection of Tracker
instances in existence.
Singleton instance of true filter.
A file filter that always returns true.
Returns a filter that always returns true.
Waits for NFS to propagate a file creation, imposing a timeout.
Internal method that walks the directory hierarchy in a depth-first manner.
Main recursive method to examine the directory hierarchy.
Filters files using the supplied wildcards.
Construct a new case-sensitive wildcard filter for a list of wildcards.
Construct a new wildcard filter for a list of wildcards specifying case-sensitivity.
Construct a new case-sensitive wildcard filter for a single wildcard.
Construct a new wildcard filter for a single wildcard specifying case-sensitivity.
Construct a new case-sensitive wildcard filter for an array of wildcards.
Construct a new wildcard filter for an array of wildcards specifying case-sensitivity.
Filters files using the supplied wildcards.
Construct a new case-sensitive wildcard filter for a list of wildcards.
Construct a new case-sensitive wildcard filter for a single wildcard.
Construct a new case-sensitive wildcard filter for an array of wildcards.
Checks a filename to see if it matches the specified wildcard matcher,
always testing case-sensitive.
Checks a filename to see if it matches the specified wildcard matcher
allowing control over case-sensitivity.
Checks a filename to see if it matches the specified wildcard matcher
using the case rules of the system.
The wildcards that will be used to match filenames.
The wildcards that will be used to match filenames.
Operating system state flag for Windows.
The Windows separator character.
Writes b.length
bytes from the specified byte array to this
output stream.
Writes len
bytes from the specified byte array starting at
offset off
to this output stream.
Writes the contents of the specified byte array to this output stream
keeping count of the number of bytes written.
Does nothing - output to /dev/null
.
Invokes the delegate's write(byte[])
method.
Write the bytes to both streams.
Write the bytes to byte array.
Writes a portion of the specified byte array to this output stream
keeping count of the number of bytes written.
Does nothing - output to /dev/null
.
Invokes the delegate's write(byte[])
method.
Write the specified bytes to both streams.
Writes bytes from a byte[]
to an OutputStream
.
Writes bytes from a byte[]
to chars on a Writer
using the default character encoding of the platform.
Writes bytes from a byte[]
to chars on a Writer
using the specified character encoding.
Write the characters from an array.
Write the characters from an array.
Does nothing - output to /dev/null
.
Invokes the delegate's write(char[])
method.
Write the specified characters from an array.
Write the specified characters from an array.
Does nothing - output to /dev/null
.
Invokes the delegate's write(char[], int, int)
method.
Writes chars from a char[]
to bytes on an
OutputStream
.
Writes chars from a char[]
to bytes on an
OutputStream
using the specified character encoding.
Writes chars from a char[]
to a Writer
using the default character encoding of the platform.
Writes the entire contents of the specified input stream to this
byte stream.
Write a byte to byte array.
Throws an IOException
to indicate that the stream is closed.
Writes a single byte to the output stream adding to the count of the
number of bytes written.
Writes byte to stream associated with current thread.
Does nothing - output to /dev/null
.
Does nothing - output to /dev/null
.
Invokes the delegate's write(int)
method.
Invokes the delegate's write(int)
method.
Write a byte to both streams.
Writes the specified byte to this output stream.
Write the characters from a string.
Write the characters from a string.
Does nothing - output to /dev/null
.
Invokes the delegate's write(String)
method.
Write the specified characters from a string.
Write the specified characters from a string.
Does nothing - output to /dev/null
.
Invokes the delegate's write(String)
method.
Writes chars from a String
to bytes on an
OutputStream
using the default character encoding of the
platform.
Writes chars from a String
to bytes on an
OutputStream
using the specified character encoding.
Writes chars from a String
to a Writer
.
Writes chars from a StringBuffer
to bytes on an
OutputStream
using the default character encoding of the
platform.
Writes chars from a StringBuffer
to bytes on an
OutputStream
using the specified character encoding.
Writes chars from a StringBuffer
to a Writer
.
Writes a byte array to a file creating the file if it does not exist.
Writes the toString()
value of each item in a collection to
an OutputStream
line by line, using the default character
encoding of the platform and the specified line ending.
Writes the toString()
value of each item in a collection to
an OutputStream
line by line, using the specified character
encoding and the specified line ending.
Writes the toString()
value of each item in a collection to
a Writer
line by line, using the specified line ending.
Writes the toString()
value of each item in a collection to
the specified File
line by line.
Writes the toString()
value of each item in a collection to
the specified File
line by line.
Writes the toString()
value of each item in a collection to
the specified File
line by line.
Writes the toString()
value of each item in a collection to
the specified File
line by line.
Writes a String to a file creating the file if it does not exist using the default encoding for the VM.
Writes a String to a file creating the file if it does not exist.
Writes a "double" value to a byte array at a given offset.
Writes a "double" value to an OutputStream.
Writes a "float" value to a byte array at a given offset.
Writes a "float" value to an OutputStream.
Writes a "int" value to a byte array at a given offset.
Writes a "int" value to an OutputStream.
Writes a "long" value to a byte array at a given offset.
Writes a "long" value to an OutputStream.
Writes a "short" value to a byte array at a given offset.
Writes a "short" value to an OutputStream.
Writes the entire contents of this byte stream to the
specified output stream.
Writes the data from this output stream to the specified output stream,
after it has been closed.
The number of bytes written to the output stream.