edu.rice.cs.util |
A collection of utility classes and packages.
|
Java Source File Name | Type | Comment |
ArgumentTokenizer.java | Class | 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.java | Class | Tests that an ArgumentTokenizer can correctly divide up a string
into command line-style arguments. |
BidirectionalHashMap.java | Class | |
BidirectionalHashMapTest.java | Class | A JUnit test case class. |
CompletionMonitor.java | Class | Enables threads to communicate with each other by signaling. |
CompletionMonitorTest.java | Class | |
DirectorySelector.java | Interface | An interface to give GlobalModel a directory for various operations. |
ExitingNotAllowedException.java | Class | An exception to be thrown when System.exit is called when the
PreventExitSecurityManager is in force. |
FileOpenSelector.java | Interface | An interface for a GUI frame that opens files. |
FileOps.java | Class | A class to provide some convenient file operations as static methods. |
FileOpsTest.java | Class | Test cases for
FileOps . |
InputStreamRedirector.java | Class | Redirects requests for input through the abstract method _getInput(). |
Lambda.java | Interface | This lambda interface is a generic version of the scheme lambda. |
Log.java | Class | Logging class to record errors or unexpected behavior to a file. |
LogTest.java | Class | Test cases for
Log . |
NullFile.java | Class | A null file. |
OperationCanceledException.java | Class | Indicates that a GUI operation has been canceled, e.g., choosing
a file to save to from a file selection dialog. |
OrderedBidirectionalHashMap.java | Class | |
OrderedBidirectionalHashMapTest.java | Class | A JUnit test case class. |
OrderedHashSet.java | Class | A set class patterned after HashSet except that the construction order for elements is scrupulously maintained
for the sake of supporting obvious list operations based on construction order (addition to the set). |
OrderedHashSetTest.java | Class | A JUnit test case class. |
OutputStreamRedirector.java | Class | Allows an output stream, such as System.out and System.err, to be redirected to another stream. |
Pair.java | Class | A pair. |
PreventExitSecurityManager.java | Class | Not used anymore. |
PreventExitSecurityManagerTest.java | Class | Test cases for
PreventExitSecurityManager . |
ReaderWriterLock.java | Class | This class implements synchronization primitives to solve the classic
readers/writers problem without allowing deadlock or starvation.
Problem: Suppose multiple threads want to read and write to a resource.
Multiple readers can be active at a time, but only a single writer can
be active at a time, and no readers can be active while the writer is
active.
We must be careful to avoid starvation in our solution, so that a steady
flow of reader threads cannot block waiting writer threads indefinitely.
This can be achieved by imposing an ordering on the incoming readers
and writers.
To use this class, instantiate a ReaderWriterLock in the class holding
the shared resource. |
ReaderWriterLockTest.java | Class | Attempts to test the correctness of the ReaderWriterLock class, which allows multiple reader and writer threads to
safely access a shared resource. |
SRunnable.java | Interface | |
StreamRedirectorTest.java | Class | Test suite over InputStreamRedirector. |
StreamRedirectThread.java | Class | StreamRedirectThread is a thread which copies its input to its output and terminates when it completes. |
StringOps.java | Class | A class to provide some convenient String operations as static methods. |
StringOpsTest.java | Class | Test functions of StringOps. |
UnexpectedException.java | Class | An exception which DrJava throws on an unexpected error.
Many times, we have to catch BadLocationExceptions in
code that accesses DefinitionDocument, even if we know for a
fact that a BadLocationException cannot occur. |