A B C D E F G I L M N O P Q R S T U W

A

add() - Method in class ucb.util.Deque
Append an object to the end of this deque, and return it.
add(Object) - Method in class ucb.util.Deque
Append X to the end of this deque (returns true).
addFirst() - Method in class ucb.util.Deque
 
addLast() - Method in class ucb.util.Deque
 
addLast(Object) - Method in class ucb.util.Deque
As for add(X), but returns nothing.

B

box - Variable in class ucb.util.mailbox.SimpleMailbox
The Mailbox being filtered (argument to the constructor).

C

capacity() - Method in interface ucb.util.mailbox.Mailbox
The capacity (see interface comment above) of THIS.
capacity() - Method in class ucb.util.mailbox.QueuedMailbox
The capacity (as defined in the documentation for Mailbox) of THIS.
capacity() - Method in class ucb.util.mailbox.SimpleMailbox
The capacity (see interface comment above) of THIS.
capacity() - Method in class ucb.util.mailbox.SyncMailbox
 
cerr - Static variable in interface ucb.io.StdIO
C++-ish synonym for stderr.
CHAR - Static variable in class ucb.io.InputItem
 
charCount() - Method in class ucb.io.FormatReader
Number of characters consumed by the last call to scan.
charItem(int) - Method in class ucb.io.FormatReader
Short for item(i).toChar().
checkError() - Method in class ucb.io.FormatWriter
Reports I/O errors other than a FormatException.
cin - Static variable in interface ucb.io.StdIO
C++-ish synonym for stdin.
clear() - Method in class ucb.util.Deque
Remove all items from THIS.
clear(boolean) - Method in class ucb.io.FormatReader
Set the return value of error() to the indicated value.
close() - Method in class ucb.io.FormatReader
Closes this stream and its source Reader.
close() - Method in class ucb.io.FormatWriter
Flush and close output stream.
close() - Method in class ucb.util.SimpleObjectRegistry
Remove all bindings from this registry, and disable it from further use.
close() - Method in class ucb.util.Ticker
Permanently stop THIS and terminate its thread.
close() - Method in interface ucb.util.mailbox.Mailbox
Delete any pending messages and then invalidate this Mailbox, so that further use causes an exception.
close() - Method in class ucb.util.mailbox.QueuedMailbox
Delete any pending messages and then invalidate this Mailbox, so that further use causes an exception.
close() - Method in class ucb.util.mailbox.SimpleMailbox
Flush any pending messages and then invalidate this Mailbox, so that further use causes an exception.
close() - Method in class ucb.util.mailbox.SyncMailbox
Delete any pending messages and then invalidate this Mailbox, so that further use causes an exception.
CommandArgs - class ucb.util.CommandArgs.
A CommandArgs object is a sequence of arguments (Strings), typically extracted from the command-line arguments to a main procedure.
CommandArgs(String[], String[]) - Constructor for class ucb.util.CommandArgs
 
CommandArgs(String, String[]) - Constructor for class ucb.util.CommandArgs
A new stream of arguments conforming to SHORTOPTIONS and LONGOPTIONS, extracted from RAWARGS (typically the argument to the main program).
concurrency() - Method in interface ucb.util.mailbox.Mailbox
The level of concurrency for forwarding: 0 means mail is forwarded before deposit finishes; n>0 mean that n separate daemon threads deliver forwarded mail.
concurrency() - Method in class ucb.util.mailbox.QueuedMailbox
The degree of concurrency for forwarding (0).
concurrency() - Method in class ucb.util.mailbox.SimpleMailbox
The level of concurrency for forwarding mail.
concurrency() - Method in class ucb.util.mailbox.QueuedConcurrentMailbox
 
concurrency() - Method in class ucb.util.mailbox.SyncMailbox
The strategy used to forward mail.
count() - Method in class ucb.io.FormatWriter
Reports the number of characters sent to the stream since the latest call to format (or the construction of this FormatWriter, if there has been no such call).
cout - Static variable in interface ucb.io.StdIO
C++-ish synonym for stdout.
create() - Method in interface ucb.util.Factory
 

D

deposit(Serializable) - Method in interface ucb.util.mailbox.Mailbox
Deposit MSG in this Mailbox.
deposit(Serializable) - Method in class ucb.util.mailbox.QueuedMailbox
Deposit MSG in this Mailbox.
deposit(Serializable) - Method in class ucb.util.mailbox.SimpleMailbox
Deposit MSG in this Mailbox.
deposit(Serializable) - Method in class ucb.util.mailbox.SyncMailbox
 
depositIfPossible(Serializable) - Method in interface ucb.util.mailbox.Mailbox
Deposit MSG in this Mailbox, if it is not full.
depositIfPossible(Serializable) - Method in class ucb.util.mailbox.QueuedMailbox
Deposit MSG in this Mailbox, if it is not full.
depositIfPossible(Serializable) - Method in class ucb.util.mailbox.SimpleMailbox
Deposit MSG in this Mailbox, if it is not full.
depositIfPossible(Serializable) - Method in class ucb.util.mailbox.SyncMailbox
Deposit MSG in this Mailbox, if has no message.
Deque - class ucb.util.Deque.
A double-ended queue of Objects.
Deque() - Constructor for class ucb.util.Deque
An empty deque.
Deque(int) - Constructor for class ucb.util.Deque
An empty deque initially expected to contain up to INITCAPACITY items.
Deque(int, Factory) - Constructor for class ucb.util.Deque
An empty deque initially expected to contain up to INITCAPACITY items, whose unused items are initialized to objects produced by Factory.
detail - Variable in class ucb.util.mailbox.MailboxException
 
disconnect() - Method in class ucb.io.FormatReader
Disassociate the underlying stream from THIS, without closing the that stream.
disconnect() - Method in class ucb.io.FormatWriter
Flush the underlying stream and then disassociate it from THIS without closing that stream.
DOUBLE - Static variable in class ucb.io.InputItem
 
doubleItem(int) - Method in class ucb.io.FormatReader
Short for item(i).toDouble().

E

empty() - Method in class ucb.util.Deque
True iff THIS is empty.
eof() - Method in class ucb.io.FormatReader
True if the last call to scan encountered end-of-file.
error() - Method in class ucb.io.FormatReader
Set true when a call to scan encounters an error in the input.

F

Factory - interface ucb.util.Factory.
A general interface to Objects that create other objects.
fill(char) - Method in class ucb.io.FormatWriter
Set the fill character for the next call to put.
finalize() - Method in class ucb.io.FormatWriter
At finish, flush all pending output.
findObject(String, String) - Static method in class ucb.util.SimpleObjectRegistry
Same as findObject (NAME, HOST, DEFAULT_LOW_PORT, DEFAULT_HIGH_PORT).
findObject(String, String[]) - Static method in class ucb.util.SimpleObjectRegistry
Same as findObject (NAME, HOSTS, DEFAULT_LOW_PORT, DEFAULT_HIGH_PORT).
findObject(String, String[], int, int) - Static method in class ucb.util.SimpleObjectRegistry
 
findObject(String, String, int, int) - Static method in class ucb.util.SimpleObjectRegistry
Find an remote object named NAME in some registry on HOST on some port number between LOWPORT and HIGHPORT.
first() - Method in class ucb.util.Deque
The first item in THIS.
FLOAT - Static variable in class ucb.io.InputItem
 
floatItem(int) - Method in class ucb.io.FormatReader
Short for item(i).toFloat().
flush() - Method in class ucb.io.FormatWriter
Flush all pending output, insuring that it gets written.
flush() - Method in interface ucb.util.mailbox.Mailbox
Wait until all pending messages have been received.
flush() - Method in class ucb.util.mailbox.QueuedMailbox
Wait until all pending messages have been received.
flush() - Method in class ucb.util.mailbox.SimpleMailbox
Wait until all pending messages have been received.
flush() - Method in class ucb.util.mailbox.SyncMailbox
Wait until all pending messages have been received.
format(String) - Method in class ucb.io.FormatWriter
Set the current format.
FormatException - exception ucb.io.FormatException.
Signals that a program has supplied an invalid format string or has tried to satisfy a format with an item of the wrong type.
FormatException() - Constructor for class ucb.io.FormatException
Constructs a FormatException with no detail message.
FormatException(String) - Constructor for class ucb.io.FormatException
Constructs a FormatException with the specified detail message.
FormatReader - class ucb.io.FormatReader.
Provides formatted input of text, with format specifications similar to scanf from the standard C library.
FormatReader(InputStream) - Constructor for class ucb.io.FormatReader
A new FormatReader filtering input from INP.
FormatReader(Reader) - Constructor for class ucb.io.FormatReader
A new FormatReader filtering input from INP.
FormatWriter - class ucb.io.FormatWriter.
Provides for printf-like formatted output of text.
FormatWriter(OutputStream) - Constructor for class ucb.io.FormatWriter
 
FormatWriter(OutputStream, boolean) - Constructor for class ucb.io.FormatWriter
 
FormatWriter(Writer) - Constructor for class ucb.io.FormatWriter
Create a new FormatWriter that sends output to a given stream.
FormatWriter(Writer, boolean) - Constructor for class ucb.io.FormatWriter
Create a new FormatWriter that sends output to a given stream, and optionally set to flush on each format and put operation.
forwardTo(Mailbox, boolean) - Method in interface ucb.util.mailbox.Mailbox
Begin forwarding copies of all messages to BOX in the order received.
forwardTo(Mailbox, boolean) - Method in class ucb.util.mailbox.QueuedMailbox
Begin forwarding copies of all messages to BOX in the order received.
forwardTo(Mailbox, boolean) - Method in class ucb.util.mailbox.SimpleMailbox
Begin forwarding copies of all messages to BOX in the order received.
forwardTo(Mailbox, boolean) - Method in class ucb.util.mailbox.SyncMailbox
Begin forwarding copies of all messages to BOX in the order received.

G

get(int) - Method in class ucb.util.Deque
The Ith item (numbering from 0) in THIS.
getc() - Method in class ucb.io.FormatReader
Returns the next character, as would be read by scan("%c"), and returns either it, or -1 on end of file or error.
getMessage() - Method in class ucb.util.mailbox.MailboxException
 

I

InputItem - class ucb.io.InputItem.
Represents a data item having one of several different types.
InputItem() - Constructor for class ucb.io.InputItem
A new InputItem with an undefined value (type UNDEFINED).
INT - Static variable in class ucb.io.InputItem
 
intItem(int) - Method in class ucb.io.FormatReader
Short for item(i).toInt().
item(int) - Method in class ucb.io.FormatReader
A value scanned by the last call to scan.
itemCount() - Method in class ucb.io.FormatReader
Number of InputItems set by last call to scan.

L

last() - Method in class ucb.util.Deque
The last item in THIS.
LONG - Static variable in class ucb.io.InputItem
 
longItem(int) - Method in class ucb.io.FormatReader
Short for item(i).toLong().

M

Mailbox - interface ucb.util.mailbox.Mailbox.
A repository for messages, suitable for remote use.
MailboxException - exception ucb.util.mailbox.MailboxException.
 
MailboxException() - Constructor for class ucb.util.mailbox.MailboxException
 
MailboxException(String) - Constructor for class ucb.util.mailbox.MailboxException
 
MailboxException(Throwable) - Constructor for class ucb.util.mailbox.MailboxException
 
MailboxWatch - class ucb.util.mailbox.MailboxWatch.
A MailboxWatch takes a stream of forwarded messages from a Mailbox and prints them to a specified stream.
MailboxWatch(Mailbox, String, PrintStream) - Constructor for class ucb.util.mailbox.MailboxWatch
A new MailboxWatch on BOX, reporting to STR.
mark(int) - Method in class ucb.io.FormatReader
 
markSupported() - Method in class ucb.io.FormatReader
 

N

name(int) - Method in class ucb.util.CommandArgs
The option name associated with the Ith option occurrence (0 <= I < numOptions ()).
number(char) - Method in class ucb.util.CommandArgs
The number of occurrences of option C in the arguments to the constructor.
number(String) - Method in class ucb.util.CommandArgs
The number of occurrences of option S in the arguments to the constructor.
numOptions() - Method in class ucb.util.CommandArgs
The number of option occurrences in the arguments.
numOtherArgs() - Method in class ucb.util.CommandArgs
The number of other (non-option) arguments (does not include --).

O

ok() - Method in class ucb.util.CommandArgs
True iff all options provided to the constructor were correct.
ok(int) - Method in class ucb.util.CommandArgs
True iff the Ith option occurrence was legal, 0 <= I < numOptions ().
option(int) - Method in class ucb.util.CommandArgs
The option letter associated with the Ith option occurrence (0 <= I < numOptions ()).
optionValue(char, int) - Method in class ucb.util.CommandArgs
The argument value of the Ith occurrence of option C, where I >= 0.
optionValue(int) - Method in class ucb.util.CommandArgs
The argument value associated with the Ith option occurrence (0 <= I < numOptions ()).
optionValue(String, int) - Method in class ucb.util.CommandArgs
The argument value of the Ith occurrence of option S, where I >= 0.
otherArg(int) - Method in class ucb.util.CommandArgs
The Ith other (non-option) argument, 0 <= I < numOtherArgs ().

P

peek() - Method in class ucb.util.Deque
Synonym for first().
pop() - Method in class ucb.util.Deque
Synonym for removeFirst().
port() - Method in class ucb.util.SimpleObjectRegistry
The port number on which this registry is exported.
precision(int) - Method in class ucb.io.FormatWriter
Set the precision for the next call to put.
present(char) - Method in class ucb.util.CommandArgs
True iff at least one instance of option C is present.
present(String) - Method in class ucb.util.CommandArgs
True iff at least one instance of option S is present.
push(Object) - Method in class ucb.util.Deque
Synonym for addFirst(X).
put(boolean) - Method in class ucb.io.FormatWriter
Output a boolean as if it were the integer 1 for true, or 0 for false.
put(char) - Method in class ucb.io.FormatWriter
Output C as a single character.
put(char[]) - Method in class ucb.io.FormatWriter
Output an array of characters as for a string of the same length.
put(double) - Method in class ucb.io.FormatWriter
Output a floating-point value according to the current format directive.
put(int) - Method in class ucb.io.FormatWriter
Output an int value according to the current format directive.
put(long) - Method in class ucb.io.FormatWriter
Output a long value according to the current format directive.
put(Object) - Method in class ucb.io.FormatWriter
Output an arbitrary Object as a string.
put(String) - Method in class ucb.io.FormatWriter
Output a String according to the current format item.

Q

QueuedConcurrentMailbox - class ucb.util.mailbox.QueuedConcurrentMailbox.
 
QueuedConcurrentMailbox(int) - Constructor for class ucb.util.mailbox.QueuedConcurrentMailbox
 
QueuedConcurrentMailbox(int, boolean, int) - Constructor for class ucb.util.mailbox.QueuedConcurrentMailbox
 
QueuedMailbox - class ucb.util.mailbox.QueuedMailbox.
A Mailbox with a specified (positive) capacity.
QueuedMailbox(int) - Constructor for class ucb.util.mailbox.QueuedMailbox
A QueuedMailbox with capacity () fixed at CAPACITY that retains messages for receipt.
QueuedMailbox(int, boolean) - Constructor for class ucb.util.mailbox.QueuedMailbox
A QueuedMailbox with capacity () fixed at CAPACITY and retains () fixed at RETAIN.

R

read() - Method in class ucb.io.FormatReader
 
read(char[]) - Method in class ucb.io.FormatReader
 
read(char[], int, int) - Method in class ucb.io.FormatReader
 
ready() - Method in class ucb.io.FormatReader
 
rebind(String, Remote) - Method in class ucb.util.SimpleObjectRegistry
Bind NAME to VALUE in this registry, replacing any existing binding.
receive() - Method in interface ucb.util.mailbox.Mailbox
Receive the next queued message in this Mailbox.
receive() - Method in class ucb.util.mailbox.QueuedMailbox
Receive the next queued message in this Mailbox.
receive() - Method in class ucb.util.mailbox.SimpleMailbox
Receive the next queued message in this Mailbox.
receive() - Method in class ucb.util.mailbox.SyncMailbox
Receive the next queued message in this Mailbox.
receiveIfPossible() - Method in interface ucb.util.mailbox.Mailbox
Receive the next queued message in this Mailbox, if one is immediately available.
receiveIfPossible() - Method in class ucb.util.mailbox.QueuedMailbox
Receive the next queued message in this Mailbox, if one is immediately available.
receiveIfPossible() - Method in class ucb.util.mailbox.SimpleMailbox
Receive the next queued message in this Mailbox, if one is immediately available.
receiveIfPossible() - Method in class ucb.util.mailbox.SyncMailbox
Receive the next queued message in this Mailbox, if one is immediately available.
remove(int) - Method in class ucb.util.Deque
Remote and return item #I from THIS, re-indexing all following items appropriately.
removeFirst() - Method in class ucb.util.Deque
Remove and return first().
removeLast() - Method in class ucb.util.Deque
Remove and return last().
reopen(InputStream) - Method in class ucb.io.FormatReader
Re-open THIS to filter input from INP.
reopen(Reader) - Method in class ucb.io.FormatReader
Re-open THIS to filter input from INP.
reopen(Writer, boolean) - Method in class ucb.io.FormatWriter
Reopen THIS to write to OUT, setting automatic flushing of pending output on each operation iff FLUSH.
reset() - Method in class ucb.io.FormatReader
 
retains() - Method in interface ucb.util.mailbox.Mailbox
True iff this Mailbox retains messages sent to it for later receipt.
retains() - Method in class ucb.util.mailbox.QueuedMailbox
True iff this Mailbox retains messages sent to it for later receipt.
retains() - Method in class ucb.util.mailbox.SimpleMailbox
True iff this Mailbox retains messages sent to it for later receipt.
retains() - Method in class ucb.util.mailbox.SyncMailbox
True iff this Mailbox retains messages sent to it for later receipt.
run() - Method in class ucb.util.Ticker
 
run() - Method in class ucb.util.mailbox.MailboxWatch
 

S

scan(String) - Method in class ucb.io.FormatReader
Extract data items from the attached InputStream according to a specified format string, and put them in item(0), item(1), etc.
set(char) - Method in class ucb.io.InputItem
Set the value of this to given value, and set type() to CHAR.
set(double) - Method in class ucb.io.InputItem
Set the value of this to given value, and set type() to DOUBLE.
set(float) - Method in class ucb.io.InputItem
Set the value of this to given value, and set type() to FLOAT.
set(int) - Method in class ucb.io.InputItem
Set the value of this to given value, and set type() to INT.
set(int, Object) - Method in class ucb.util.Deque
Set get(I) to V.
set(long) - Method in class ucb.io.InputItem
Set the value of this to given value, and set type() to LONG.
set(String, int) - Method in class ucb.io.InputItem
Set the value of this to given value, and set type() to given type, either CHAR or STRING.
SimpleMailbox - class ucb.util.mailbox.SimpleMailbox.
A filter on Mailboxes that turns all InterruptedException and RemoteExceptions into RuntimeExceptions (MailboxExceptions).
SimpleMailbox(Mailbox) - Constructor for class ucb.util.mailbox.SimpleMailbox
 
SimpleObjectRegistry - class ucb.util.SimpleObjectRegistry.
A kind of registry that provides a very simple means of exchanging remote objects by name.
SimpleObjectRegistry() - Constructor for class ucb.util.SimpleObjectRegistry
Same as SimpleObjectRegistry (DEFAULT_LOW_PORT, DEFAULT_HIGH_PORT).
SimpleObjectRegistry(int) - Constructor for class ucb.util.SimpleObjectRegistry
Same as SimpleObjectRegistry (PORT, PORT).
SimpleObjectRegistry(int, int) - Constructor for class ucb.util.SimpleObjectRegistry
Create a new SimpleObjectRegistry on one of the ports LOWPORT to HIGHPORT, if possible.
size() - Method in class ucb.util.Deque
Number of items in THIS.
skip(int) - Method in class ucb.io.FormatReader
 
start() - Method in class ucb.util.Ticker
Start ticking, executing tick () at each tick.
stderr - Static variable in interface ucb.io.StdIO
The standard error output (which goes to System.err) as a formatted stream.
stdin - Static variable in interface ucb.io.StdIO
The standard input delivered by System.in as a formatted stream.
StdIO - interface ucb.io.StdIO.
A collection of useful definitions for standalone applications.
stdout - Static variable in interface ucb.io.StdIO
The standard output (which goes to System.out) as a formatted stream.
stop() - Method in class ucb.util.Ticker
Stop ticking.
stopForwardingTo(Mailbox) - Method in interface ucb.util.mailbox.Mailbox
Stop forwarding copies of messages to BOX.
stopForwardingTo(Mailbox) - Method in class ucb.util.mailbox.QueuedMailbox
Stop forwarding copies of messages to BOX.
stopForwardingTo(Mailbox) - Method in class ucb.util.mailbox.SimpleMailbox
Stop forwarding copies of messages to BOX.
stopForwardingTo(Mailbox) - Method in class ucb.util.mailbox.SyncMailbox
Stop forwarding copies of messages to BOX.
STRING - Static variable in class ucb.io.InputItem
 
stringItem(int) - Method in class ucb.io.FormatReader
Short for item(i).toString().
SyncMailbox - class ucb.util.mailbox.SyncMailbox.
A SyncMailbox has a capacity of 0.
SyncMailbox() - Constructor for class ucb.util.mailbox.SyncMailbox
 

T

tick() - Method in class ucb.util.Ticker
Action to perform on each clock tick.
Ticker - class ucb.util.Ticker.
A simple timer class that periodically performs some action
Ticker(long) - Constructor for class ucb.util.Ticker
A Ticker that, when started, fires every INTERVAL milliseconds.
tie(OutputStream) - Method in class ucb.io.FormatReader
Arrange for OUT to be flushed before every input operation on THIS.
tie(Writer) - Method in class ucb.io.FormatReader
Arrange for OUT to be flushed before every input operation on THIS.
toChar() - Method in class ucb.io.InputItem
The value of this InputItem, if it is of type CHAR.
toDouble() - Method in class ucb.io.InputItem
The value of this InputItem, if it is of type DOUBLE or FLOAT.
toFloat() - Method in class ucb.io.InputItem
The value of this InputItem, if it is of type FLOAT.
toInt() - Method in class ucb.io.InputItem
The value of this InputItem, if it is of type INT or CHAR.
toLong() - Method in class ucb.io.InputItem
The value of this InputItem, if it is of type LONG, INT, or CHAR.
toString() - Method in class ucb.io.InputItem
The value of this InputItem, if it is of type CHAR or STRING.
toString() - Method in class ucb.util.mailbox.MailboxException
 
type() - Method in class ucb.io.InputItem
The integer tag (UNDEFINED, INT, LONG, FLOAT, DOUBLE, STRING) representing the current value's type.

U

ucb.io - package ucb.io
 
ucb.util - package ucb.util
 
ucb.util.mailbox - package ucb.util.mailbox
 
unbind() - Method in class ucb.util.SimpleObjectRegistry
Remove all bindings in this registry.
unbind(String) - Method in class ucb.util.SimpleObjectRegistry
Remove any binding of NAME in this registry.
UNDEFINED - Static variable in class ucb.io.InputItem
 
unread(int) - Method in class ucb.io.FormatReader
Insert character at the beginning of the remaining input stream.

W

width(int) - Method in class ucb.io.FormatWriter
Set the field width for the next call to put.

A B C D E F G I L M N O P Q R S T U W