Package edu.rice.cs.util

A collection of utility classes and packages.

See:
          Description

Interface Summary
DirectorySelector An interface to give GlobalModel a directory for various operations.
FileOpenSelector An interface for a GUI frame that opens files.
FileOps.FileSaver  
 

Class Summary
ArgumentTokenizer Utility class which can tokenize a String into a list of String arguments, with behavior similar to parsing command line arguments to a program.
ArgumentTokenizerTest Tests that an ArgumentTokenizer can correctly divide up a string into command line-style arguments.
BalancingStreamTokenizer A tokenizer that splits a stream into string tokens while balancing quoting characters.
BalancingStreamTokenizer.State State of the tokenizer.
BalancingStreamTokenizerTest Tests for a class to tokenize a stream while balancing quoting characters.
FileOps A class to provide some convenient file operations as static methods.
FileOps.DefaultFileSaver This class is a default implementation of FileSaver that makes only one backup of each file per instantiation of the program (following the Emacs convention).
FileOps.NullFile A singleton null file class.
FileOpsTest Test cases for FileOps.
GeneralProcessCreator This class abstracts out process creation, similar to ProcessCreator, which is only available in Java 1.5.
InputStreamRedirector Redirects requests for input through the abstract method _getInput().
JoinInputStream  
Log Logging class to record errors or unexpected behavior to a file.
LogTest Test cases for Log.
NullFile A null file.
OutputStreamRedirector Allows an output stream, such as System.out and System.err, to be redirected to another stream.
ProcessChain This class represents a piping chain of processes, in which the output of the first process is piped into the input of the second process, and so on.
ProcessCreator This class abstracts out process creation, similar to ProcessCreator, which is only available in Java 1.5.
ProcessSequence This class represents a sequence of processes.
ReaderWriterLock This class implements synchronization primitives to solve the classic readers/writers problem without deadlock or starvation.
ReaderWriterLockTest Attempts to test the correctness of the ReaderWriterLock class, which allows multiple reader and writer threads to safely access a shared resource.
StreamRedirectorTest Test suite over InputStreamRedirector.
StreamRedirectThread StreamRedirectThread is a thread which copies its input to its output and terminates when it completes.
StringOps A class to provide some convenient String operations as static methods.
StringOpsTest Test functions of StringOps.
XMLConfig XML configuration management.
XMLConfigTest XML configuration management tests.
 

Enum Summary
BalancingStreamTokenizer.Token Kind of tokens to be returned.
 

Exception Summary
BalancingStreamTokenizer.KeywordStartsWithQuoteException Keyword starts with quote exception.
BalancingStreamTokenizer.KeywordStartsWithWhitespaceException Keyword starts with whitespace exception.
BalancingStreamTokenizer.QuoteStartsWithWhitespaceException Quote starts with whitespace exception.
BalancingStreamTokenizer.SetupException Setup exception.
BalancingStreamTokenizer.StartsWithWhitespaceException Quote or keyword starts with whitespace exception.
OperationCanceledException Indicates that a GUI operation has been canceled, e.g., choosing a file to save to from a file selection dialog.
ReaderWriterLock.DeadlockException Class representing a deadlock that would have occurred if the acquire operation had been executed.
StreamRedirectException An exception that occurs while redirecting an output stream into an input stream.
UnexpectedException An exception which DrJava throws on an unexpected error.
XMLConfig.XMLConfigException Exception in XMLConfig methods.
 

Package edu.rice.cs.util Description

A collection of utility classes and packages.