Index of all Fields and Methods
All Packages  Class Hierarchy

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Index of all Fields and Methods

A

accept(String). Method in class prominence.chat.ChatSystemHandler
Attempts to register the client in the routing table.
accept(String). Method in class prominence.msg.GenericHandler
Attempts to register the client in the server routing table and informs the client of success.
accept(String). Method in class prominence.msgx.GenericRegistryHandler
Attempts to register the client in the server routing table and informs the client of success.
action(Event, Object). Method in class part3.chapter18.Chatboard
action(Event, Object). Method in class prominence.chat.Chatboard
Handles input from the user.
action(Event, Object). Method in class prominence.chat.Registry
Processes the clear Button.
add(Object). Method in class prominence.util.Queue
Adds an item to the front of the queue, wakes a caller who is waiting for the queue to become non-empty.
alarm. Variable in class part2.chapter11.SureDelivery
Alarm(int, Alarmable). Constructor for class prominence.util.Alarm
Creates an Alarm that will call back the specified Alarmable object after the specified delay.
Alarm(int, Alarmable, Object). Constructor for class prominence.util.Alarm
Creates an Alarm that will call back the specified Alarmable object after the specified delay, with the specified argument.
alarmCall(Object). Method in interface prominence.util.Alarmable
This method is called when an Alarm has elapsed.
alarmCall(Object). Method in class part2.chapter11.SureDelivery
AltAppendFileOutputStream(String). Constructor for class prominence.io.AltAppendFileOutputStream
Creates a new AltAppendFileOutputStream that appends to the end of an existing file, or creates a new file if necessary.
AltAppendFileOutputStreamEg(). Constructor for class part2.chapter5.AltAppendFileOutputStreamEg
announce(boolean). Method in class prominence.chat.ChatSystemHandler
Announces the client joining or leaving to all other users.
announce(boolean). Method in class prominence.msgx.GenericRegistryHandler
Broadcasts when the client joins or leaves.
AppendFileOutputStream(String). Constructor for class prominence.io.AppendFileOutputStream
Creates a new AppendFileOutputStream that appends to the end of an existing file, or creates a new file otherwise.
AppendFileOutputStreamEg(). Constructor for class part2.chapter5.AppendFileOutputStreamEg
arg. Variable in class prominence.util.Alarm
An optional argument that is passed to the targets alarmCall() method.
ASCIIInputStream(InputStream). Constructor for class prominence.io.ASCIIInputStream
Creates a new ASCIIInputStream.
ASCIIOutputStream(OutputStream). Constructor for class prominence.io.ASCIIOutputStream
Creates a new ASCIIOutputStream.
ASCIIStreamsEg(). Constructor for class part2.chapter6.ASCIIStreamsEg
attr. Variable in class part3.chapter16.TransactionClient
AuthException(). Constructor for class part2.chapter14.AuthException
AuthException(String). Constructor for class part2.chapter14.AuthException
available(). Method in class prominence.io.MyBufferedInputStream
Returns the number of bytes available to read without blocking.

B

begin(). Method in class part2.chapter13.ThreadDemo
broadcast(byte[]). Method in class prominence.msg.GenericHandler
Broadcasts a message body to all clients in the server routing table except the sender.
broadcast(byte[]). Method in class prominence.msg.Router
Broadcasts a message to all streams registered in the routing table.
broadcast(String). Static method in class part3.chapter15.ChatHandler
buffer. Variable in class prominence.io.MyBufferedInputStream
The buffer array.
buffer. Variable in class part2.chapter4.Tee
buffIndex. Variable in class prominence.io.MyBufferedInputStream
The current read index in the buffer.
buffSize. Variable in class prominence.io.MyBufferedInputStream
The amount of data in the buffer.
buffSize. Variable in class part2.chapter4.Tee
buildPacket(String, String, int). Method in class part2.chapter11.SureDelivery
ByteArrayInputTest(). Constructor for class part2.chapter8.ByteArrayInputTest
ByteArrayOutputTest(). Constructor for class part2.chapter8.ByteArrayOutputTest
byteO. Variable in class prominence.msg.DeliveryOutputStream
A ByteArrayOutputStream used to buffer the message contents.
byteO. Variable in class prominence.msg.MessageOutputStream
A ByteArrayOutputStream used to buffer the current message.
byteO. Variable in class prominence.msg.MultiplexOutputStream
A ByteArrayOutputStream used to buffer the current message contents.
byteO. Variable in class prominence.io.PostOutputStream
A buffer for the data to be posted.
byteO. Variable in class prominence.msg.QueueOutputStream
A ByteArrayOutputStream used to buffer the current message contents.
byteO. Variable in class prominence.msg.RoutingOutputStream
A ByteArrayOutputStream used to buffere the current message contents.

C

c. Variable in class prominence.chat.Chat
The communications layer.
c. Variable in class part3.chapter21.GenericChat
Chat(String, ChatSystemClient). Constructor for class prominence.chat.Chat
Creates a new Chat with the specified client name, communicating through the specified ChatSystemClient communications layer.
Chatboard(). Constructor for class part3.chapter18.Chatboard
Chatboard(Registry). Constructor for class prominence.chat.Chatboard
Creates a new Chatboard with an output TextArea and an input TextField.
ChatboardClient(). Constructor for class part3.chapter21.ChatboardClient
ChatClient(String, InputStream, OutputStream). Constructor for class part3.chapter15.ChatClient
ChatHandler(Socket). Constructor for class part3.chapter15.ChatHandler
ChatServer(int). Constructor for class part3.chapter15.ChatServer
ChatSystemClient(String, int, String). Constructor for class prominence.chat.ChatSystemClient
Creates a new ChatSystemClient connecting to the specified server with the chosen name.
ChatSystemHandler(Hashtable, InputStream, OutputStream). Constructor for class prominence.chat.ChatSystemHandler
Creates a new ChatSystemHandler with communications streams and a routing table.
ChatSystemServer(int). Constructor for class prominence.chat.ChatSystemServer
Creates a new ChatSystemServer that listens on the specified TCP port.
close(). Method in class prominence.io.AppendFileOutputStream
Closes the file.
close(). Method in class prominence.io.TeeOutputStream
Closes all of the attached streams.
closedown(). Method in class prominence.msg.GenericClient
Closes down the server connection.
CollabTool(InputStream, OutputStream). Constructor for class part3.chapter18.CollabTool
colors. Variable in class part4.chapter27.FavoriteColors
connect(). Method in class part2.chapter9.GrabPage
connect(). Method in class prominence.url.HTTPURLConnection
Connects to the server specified in the constructor if not already connected, issues an HTTP request and reads the response headers.
connect(String, int). Method in class prominence.msg.GenericClient
Connects to the specified server.
Consumer(). Constructor for class part2.chapter13.Consumer
ContentHandlerFactoryImpl(). Constructor for class prominence.url.ContentHandlerFactoryImpl
Copy(). Constructor for class part2.chapter5.Copy
copy(). Method in class prominence.msg.MessageCopier
Relays messages from i to o.
create(String). Static method in class prominence.io.MarkResetFileInputStream
This method creates a new MarkResetFileInputStream that reads from the specified file.
createContentHandler(String). Method in class prominence.url.ContentHandlerFactoryImpl
Returns a TextPlainContentHandler for MIME-type "text/plain".
createURLStreamHandler(String). Method in class prominence.url.URLStreamHandlerFactoryImpl
Returns an HTTPURLStreamHandler for the HTTP protocol, or null otherwise.

D

DataFileOutputStream(String). Constructor for class part2.chapter6.DataFileOutputStream
dataI. Variable in class prominence.msg.MessageInputStream
A DataInputStream attached to i.
dataO. Variable in class prominence.msg.MessageOutputStream
A DataOutputStream attached to o.
DateClient(). Constructor for class part4.chapter27.DateClient
DateClient(). Constructor for class part4.chapter28.DateClient
DateServer(Socket). Constructor for class part4.chapter27.DateServer
DateServerImpl(). Constructor for class part4.chapter28.DateServerImpl
DeliveryOutputStream(Recipient). Constructor for class prominence.msg.DeliveryOutputStream
Creates a new DeliveryOutputStream with a specified recipient.
Demultiplexer(MultiplexInputStream). Constructor for class prominence.msg.Demultiplexer
Creates a new Demultiplexer reading from a specified stream.
demux(). Method in class prominence.chat.ChatSystemClient
Demultiplexes incoming messages.
demux(). Method in class prominence.msg.GenericClient
Routes incoming messages from the server to the appropriate tool.
demux(). Method in class prominence.msgx.GenericSourceIDClient
Routes incoming messages from the server to the appropriate tool.
deregister(String). Method in class prominence.msg.Demultiplexer
Deregisters a particular message label.
deregister(String). Method in class prominence.msg.GenericClient
Deregisters the tool associated with a particular label.
deregister(String). Method in class prominence.msg.Router
Deregisters a particular target name.
disconnected(). Method in class prominence.chat.Chatboard
Sets the input TextField to uneditable.
disconnected(). Method in class part3.chapter21.ChatboardClient
disconnected(). Method in interface prominence.msg.Client
Disconnects the tool.
disconnected(). Method in class prominence.chat.Registry
Disconnects this tool; for this class, this has no effect.
disconnected(). Method in class prominence.chat.Whiteboard
Disconnects this tool; in this case, sets the drawing Color to red.
disconnected(). Method in class part3.chapter21.WhiteboardClient
dissect(String). Method in class part2.chapter9.GrabPage

E

encode(char). Method in class prominence.io.PostOutputStream
Returns the URL-encoded String corresponding to the char parameter.
encode(String). Method in class prominence.io.PostOutputStream
Returns the URL-encoded form of the String parameter.
end(). Method in class part2.chapter13.ThreadDemo
exec. Variable in class part3.chapter18.Chatboard
execute(). Method in class part4.chapter27.FavoriteColors
execute(). Method in class part2.chapter11.UDPEchoServer
execute(Queue). Method in class prominence.msg.GenericHandler
Starts a GenericMessageCopier that transfers messages from the client's outbound queue to the client, and then proceeds to route incoming messages from the client.
execution. Variable in class part2.chapter13.ThreadDemo
extract(). Method in class part2.chapter13.Consumer

F

FavoriteColors(String). Constructor for class part4.chapter27.FavoriteColors
file. Variable in class prominence.io.AltAppendFileOutputStream
An internal variable used to seek to the end of the stream.
file. Variable in class prominence.io.AppendFileOutputStream
A RandomAccessFile used to provide file access.
file. Variable in class part2.chapter9.GrabPage
file. Variable in class prominence.io.MarkResetFileInputStream
The file that is being read.
fileName. Variable in class part4.chapter27.FavoriteColors
fillBuffer(). Method in class prominence.io.MyBufferedInputStream
Fills the internal buffer from the attached stream.
FilterTest(). Constructor for class part2.chapter6.FilterTest
flush(). Method in class prominence.io.TeeOutputStream
Flushes all of the attached streams.
freezeColors(). Method in class part4.chapter27.FavoriteColors

G

GenericChat(GenericClient). Constructor for class part3.chapter21.GenericChat
GenericClient(String, int, String). Constructor for class prominence.msg.GenericClient
Creates a new GenericClient that connects to a GenericServer and attempts to register the chosen client name.
GenericHandler(Hashtable, InputStream, OutputStream). Constructor for class prominence.msg.GenericHandler
Creates a new GenericHandler with a specified routing table and communication channel to the client.
GenericMessageCopier(Thread, MessageInput, MessageOutput). Constructor for class prominence.msg.GenericMessageCopier
Creates a new GenericMessageCopier.
GenericRegistryHandler(Hashtable, InputStream, OutputStream). Constructor for class prominence.msgx.GenericRegistryHandler
Creates a new GenericRegistryHandler with a specified routing table and communication channel to the client.
GenericRegistryServer(int). Constructor for class prominence.msgx.GenericRegistryServer
Creates a new GenericRegistryServer that listens on the specified port.
GenericServer(int). Constructor for class prominence.msg.GenericServer
Creates a new GenericServer that listens on a specified port.
GenericSourceIDClient(String, int, String). Constructor for class prominence.msgx.GenericSourceIDClient
Creates a new GenericSourceIDClient that connects to a GenericSourceIDServer and attempts to register the chosen client name.
GenericSourceIDHandler(Hashtable, InputStream, OutputStream). Constructor for class prominence.msgx.GenericSourceIDHandler
Creates a new GenericSourceIDHandler with a specified routing table and a communication channel to the client.
GenericSourceIDServer(int). Constructor for class prominence.msgx.GenericSourceIDServer
Creates a new GenericSourceIDServer that listens on the specified port.
get. Variable in class part3.chapter16.TransactionClient
getContent(URLConnection). Method in class prominence.url.TextPlainContentHandler
Returns a String consisting of the contents of the specified URLConnection surrounded by a header and footer.
getContentType(). Method in class prominence.url.HTTPURLConnection
Attempts to determine the content-type of the referenced object.
getDate(). Method in interface part4.chapter28.DateServer
getDate(). Method in class part4.chapter28.DateServerImpl
getHeaderField(int). Method in class prominence.url.HTTPURLConnection
Returns the requested header value.
getHeaderField(String). Method in class prominence.url.HTTPURLConnection
Returns the requested header value.
getHeaderFieldKey(int). Method in class prominence.url.HTTPURLConnection
Returns the requested header key.
getInputStream(). Method in class prominence.url.HTTPURLConnection
Connects to the server if necessary, and returns a stream from which the response body can be read.
getMessageOutput(). Method in class part3.chapter18.Chatboard
getMessageOutput(). Method in class part3.chapter18.Whiteboard
grab(). Method in class part2.chapter9.GrabPage
GrabPage(String). Constructor for class part2.chapter9.GrabPage

H

h. Variable in class part3.chapter16.TransactionServer
handleEvent(Event). Method in class prominence.chat.Chat
Handles user interaction.
handleEvent(Event). Method in class part3.chapter15.ChatClient
handleEvent(Event). Method in class part3.chapter21.GenericChat
handleEvent(Event). Method in class part3.chapter16.TransactionClient
handlers. Static variable in class part3.chapter15.ChatHandler
headers. Variable in class prominence.url.HTTPURLConnection
A Hashtable of response-header key/value pairs.
host. Variable in class part2.chapter9.GrabPage
HTTPURLConnection(URL). Constructor for class prominence.url.HTTPURLConnection
Creates a new HTTPURLConnection attached to a specified URL.
HTTPURLStreamHandler(). Constructor for class prominence.url.HTTPURLStreamHandler

I

i. Variable in class part3.chapter15.ChatClient
i. Variable in class part3.chapter15.ChatHandler
i. Variable in class prominence.msg.Demultiplexer
The MultiplexInputStream from which messages are read.
i. Variable in class prominence.msg.GenericClient
An InputStream from the server.
i. Variable in class prominence.msg.GenericHandler
The InputStream from the client.
i. Variable in class prominence.msg.MessageCopier
The MessageInput from which messages are relayed.
i. Variable in class part3.chapter16.MessageEg
i. Variable in class prominence.msg.MessageInputStream
The attached InputStream.
i. Variable in class prominence.msg.MultiplexInputStream
The MessageInput to which this is attached.
i. Variable in class prominence.msg.Router
The RoutingInputStream from which messages are read.
i. Variable in class prominence.msg.RoutingInputStream
The MessageInput to which this is attached.
i. Variable in class part3.chapter16.TransactionServer
id. Static variable in class part3.chapter18.CollabTool
in. Variable in class part2.chapter9.GrabPage
in. Variable in class prominence.url.HTTPURLConnection
An InputStream from which the server response is read.
in. Variable in class part2.chapter8.PipeTest
increaseBufferSize(). Method in class part2.chapter4.Tee
InetEg(). Constructor for class part2.chapter9.InetEg
input. Variable in class part3.chapter18.Chatboard
input. Variable in class prominence.chat.Chatboard
The input region.
input. Variable in class part3.chapter15.ChatClient
insert(Object). Method in class part2.chapter13.Consumer
isEmpty(). Method in class prominence.util.Queue
Returns whether the queue is empty.

K

keys. Variable in class prominence.url.HTTPURLConnection
A Vector of response-header keys.

L

label. Variable in class prominence.msg.MultiplexInputStream
The multiplexing label of the most recently received message.
label. Variable in class prominence.msg.MultiplexOutputStream
The multiplexing label.
list. Variable in class prominence.chat.Registry
The List component.
listen(). Method in class part3.chapter16.TransactionClient
listener. Variable in class part3.chapter15.ChatClient
listUsers(). Method in class prominence.chat.ChatSystemHandler
Lists all current clients to the new client.
listUsers(). Method in class prominence.msgx.GenericRegistryHandler
Sends the client a list of the existing clients.
logon(String). Method in class prominence.msg.GenericClient
Attempts to register the specified client name with the server.

M

main(String[]). Static method in class part2.chapter5.AltAppendFileOutputStreamEg
main(String[]). Static method in class part2.chapter5.AppendFileOutputStreamEg
main(String[]). Static method in class part2.chapter6.ASCIIStreamsEg
main(String[]). Static method in class part2.chapter8.ByteArrayInputTest
main(String[]). Static method in class part2.chapter8.ByteArrayOutputTest
main(String[]). Static method in class prominence.chat.Chat
Starts a new Chat, connecting to a specified server with a chosen name.
main(String[]). Static method in class part3.chapter15.ChatClient
main(String[]). Static method in class part3.chapter15.ChatServer
main(String[]). Static method in class prominence.chat.ChatSystemServer
Starts a new ChatSystemServer listening on the specified port.
main(String[]). Static method in class part3.chapter18.CollabTool
main(String[]). Static method in class part2.chapter13.Consumer
main(String[]). Static method in class part2.chapter5.Copy
main(String[]). Static method in class part4.chapter27.DateClient
main(String[]). Static method in class part4.chapter28.DateClient
main(String[]). Static method in class part4.chapter27.DateServer
main(String[]). Static method in class part4.chapter28.DateServerImpl
main(String[]). Static method in class part4.chapter27.FavoriteColors
main(String[]). Static method in class part2.chapter6.FilterTest
main(String[]). Static method in class part3.chapter21.GenericChat
main(String[]). Static method in class prominence.msgx.GenericRegistryServer
Starts a new GenericRegistryServer listening on the specified port.
main(String[]). Static method in class prominence.msg.GenericServer
Starts a new GenericServer listening on the specified port.
main(String[]). Static method in class prominence.msgx.GenericSourceIDServer
Starts a new GenericSouceIDServer listening on the specified port.
main(String[]). Static method in class part2.chapter9.GrabPage
main(String[]). Static method in class part2.chapter9.InetEg
main(String[]). Static method in class part2.chapter5.MarkResetFileInputStreamEg
main(String[]). Static method in class part3.chapter16.MessageEg
main(String[]). Static method in class part2.chapter10.MTEchoServer
Opens a ServerSocket that accepts client connections and launches MTEchoServer threads to process these.
main(String[]). Static method in class part2.chapter7.MyBufferedInputStreamEg
main(String[]). Static method in class part2.chapter10.NBServer
Accepts two client connections and then proceeds to echo data between the clients using a nonblocking read method readNB().
main(String[]). Static method in class part2.chapter12.PageViewer
main(String[]). Static method in class part2.chapter8.PipeTest
main(String[]). Static method in class part2.chapter9.PostTest
main(String[]). Static method in class part3.chapter17.QueueEg
main(String[]). Static method in class part2.chapter4.SimpleIn
main(String[]). Static method in class part2.chapter4.SimpleOut
main(String[]). Static method in class part2.chapter10.STServer
main(String[]). Static method in class part2.chapter13.SubThread
main(String[]). Static method in class part2.chapter11.SureDelivery
main(String[]). Static method in class part2.chapter4.Tee
main(String[]). Static method in class part2.chapter7.TeeOutputStreamEg
main(String[]). Static method in class part2.chapter13.ThreadDemo
main(String[]). Static method in class part3.chapter16.TransactionClient
main(String[]). Static method in class part3.chapter16.TransactionServer
main(String[]). Static method in class part2.chapter11.UDPEchoServer
main(String[]). Static method in class part2.chapter12.URLConnectionEg
main(String[]). Static method in class part2.chapter12.URLEg
mark(int). Method in class prominence.io.MarkResetFileInputStream
Marks the current position in the file.
markedPos. Variable in class prominence.io.MarkResetFileInputStream
The last market position in the file.
MarkResetFileInputStream(RandomAccessFile). Constructor for class prominence.io.MarkResetFileInputStream
Creates a MarkResetFileInputStream that reads from the specified RandomAccessFile.
MarkResetFileInputStreamEg(). Constructor for class part2.chapter5.MarkResetFileInputStreamEg
markSupported(). Method in class prominence.io.MarkResetFileInputStream
Returns that the mark() and reset() methods are supported.
MessageCopier(MessageInput, MessageOutput). Constructor for class prominence.msg.MessageCopier
Creates a new MessageCopier.
MessageEg(InputStream). Constructor for class part3.chapter16.MessageEg
MessageInput(InputStream). Constructor for class prominence.msg.MessageInput
Creates a new MessageInput.
MessageInputStream(InputStream). Constructor for class prominence.msg.MessageInputStream
Creates a new MessageInputStream.
MessageOutput(OutputStream). Constructor for class prominence.msg.MessageOutput
Creates a new MessageOutput.
MessageOutputStream(OutputStream). Constructor for class prominence.msg.MessageOutputStream
Creates a new MessageOutputStream.
mI. Variable in class part3.chapter16.TransactionClient
mO. Variable in class part3.chapter16.TransactionClient
mouseDown(Event, int, int). Method in class part3.chapter18.Whiteboard
mouseDown(Event, int, int). Method in class prominence.chat.Whiteboard
The mouse button has been pressed; transmit the coordinates.
mouseDrag(Event, int, int). Method in class part3.chapter18.Whiteboard
mouseDrag(Event, int, int). Method in class prominence.chat.Whiteboard
The mouse has been dragged; draw a segment to the screen and transmit the coordinates.
mouseUp(Event, int, int). Method in class part3.chapter18.Whiteboard
mouseUp(Event, int, int). Method in class prominence.chat.Whiteboard
The mouse button has been released; draw the last segment to the screen, transmit the coordinates and send the complete message.
multicast(String[], byte[]). Method in class prominence.msg.GenericHandler
Multicasts a message body to the specified list of clients.
multicast(String[], byte[]). Method in class prominence.msg.Router
Broadcasts a message to a specified list of recipients.
MultiplexInputStream(MessageInput). Constructor for class prominence.msg.MultiplexInputStream
Creates a new MultiplexInputStream.
MultiplexOutputStream(MessageOutput, String). Constructor for class prominence.msg.MultiplexOutputStream
Creates a new MultiplexOutputStream.
MyBufferedInputStream(InputStream). Constructor for class prominence.io.MyBufferedInputStream
Creates a new MyBufferedInputStream with the default buffer size (512 bytes).
MyBufferedInputStream(InputStream, int). Constructor for class prominence.io.MyBufferedInputStream
Creates a new MyBufferedInputStream with a specified buffer size.
MyBufferedInputStreamEg(). Constructor for class part2.chapter7.MyBufferedInputStreamEg
myMethod(String). Method in interface part4.chapter28.MyRemote
myMethod(String). Method in class part4.chapter28.MyRemoteImpl
MyRemoteImpl(). Constructor for class part4.chapter28.MyRemoteImpl
myself. Variable in class prominence.msg.GenericHandler
Reference to a MessageOutput for this client.

N

name. Variable in class prominence.msg.GenericHandler
The client name.
NBServer(). Constructor for class part2.chapter10.NBServer
numBytes. Variable in class part2.chapter4.Tee

O

o. Variable in class part3.chapter18.Chatboard
o. Variable in class prominence.chat.Chatboard
The outbound message stream.
o. Variable in class part3.chapter21.ChatboardClient
o. Variable in class part3.chapter15.ChatClient
o. Variable in class part3.chapter15.ChatHandler
o. Variable in class prominence.msg.GenericClient
An OutputStream to the server.
o. Variable in class prominence.msg.GenericHandler
The OutputStream to the client.
o. Variable in class prominence.msg.MessageCopier
The MessageOutput to which messages are relayed.
o. Variable in class prominence.msg.MessageOutputStream
The attached OutputStream.
o. Variable in class prominence.msg.MultiplexOutputStream
The MessageOutput to which this is attached.
o. Variable in class prominence.msg.RoutingOutputStream
The MessageOutput to which this is attached.
o. Variable in class part3.chapter16.TransactionServer
o. Variable in class part3.chapter18.Whiteboard
o. Variable in class prominence.chat.Whiteboard
The outbound message stream.
objects. Variable in class part2.chapter13.Consumer
openConnection(URL). Method in class prominence.url.HTTPURLStreamHandler
Returns an unopened HTTPURLConnection attached to the specified URL.
out. Variable in class part4.chapter27.DateServer
out. Variable in class part2.chapter9.GrabPage
out. Variable in class prominence.io.TeeOutputStream
A Vector of attached streams.
output. Variable in class part3.chapter18.Chatboard
output. Variable in class prominence.chat.Chatboard
The output region.
output. Variable in class part3.chapter15.ChatClient
oX. Variable in class part3.chapter18.Whiteboard
oX. Variable in class prominence.chat.Whiteboard
The x coordinate of the last mouse action.
oY. Variable in class part3.chapter18.Whiteboard
oY. Variable in class prominence.chat.Whiteboard
The y coordinate of the last mouse action.

P

packet. Variable in class part2.chapter11.SureDelivery
PageViewer(). Constructor for class part2.chapter12.PageViewer
PipeTest(InputStream). Constructor for class part2.chapter8.PipeTest
port. Variable in class part2.chapter9.GrabPage
post(). Method in class prominence.io.PostOutputStream
Performs a CGI POST of the buffered data, prefixed by Content-Type and Content-Length headers, and returns an InputStream from which the complete server response can be read.
PostOutputStream(URL). Constructor for class prominence.io.PostOutputStream
Creates a new PostOutputStream with the specified target URL and the default content-type "application/x-www-form-urlencoded".
PostOutputStream(URL, String). Constructor for class prominence.io.PostOutputStream
Creates a new PostOutputStream with the specified target URL and the specified content-type.
PostTest(). Constructor for class part2.chapter9.PostTest
preferredSize(). Method in class prominence.chat.Chatboard
Returns the preferred size of this component.
preferredSize(). Method in class prominence.chat.Whiteboard
Returns the preferred size of this component.
println(String). Static method in class part2.chapter4.SimpleOut
pushback. Variable in class prominence.io.ASCIIInputStream
The most-recently unread byte.
put. Variable in class part3.chapter16.TransactionClient

Q

q. Variable in class part3.chapter18.Chatboard
q. Variable in class prominence.msg.QueueInputStream
The Queue of messages.
q. Variable in class prominence.msg.QueueOutputStream
The Queue of messages.
queue. Variable in class prominence.util.Queue
A Vector of the queue elements.
Queue(). Constructor for class prominence.util.Queue
Creates a new, empty Queue.
QueueEg(). Constructor for class part3.chapter17.QueueEg
QueueInputStream(Queue). Constructor for class prominence.msg.QueueInputStream
Creates a new QueueInputStream.
QueueOutputStream(Queue). Constructor for class prominence.msg.QueueOutputStream
Creates a new QueueOutputStream.

R

r. Variable in class prominence.chat.Chatboard
A registry of users.
r. Variable in class prominence.msg.DeliveryOutputStream
The recipient of messages sent to this stream.
read(). Method in class prominence.io.ASCIIInputStream
Reads a byte from the attached stream.
read(). Method in class prominence.io.MyBufferedInputStream
Reads a single byte from the attached stream, using buffering to make I/O more efficient.
read(byte[], int, int). Method in class prominence.io.ASCIIInputStream
Reads a subarray of bytes from the attached stream.
read(byte[], int, int). Method in class prominence.io.MyBufferedInputStream
Reads a subarray of bytes from the attached stream, using buffering to make I/O more efficient.
readFrom(InputStream). Method in class part2.chapter4.Tee
readHeaders(InputStream). Method in class prominence.url.HTTPURLConnection
Reads response headers from the server.
readInt(). Method in class prominence.io.ASCIIInputStream
Reads an ASCII-format int from the attached stream; skips any preceeding whitespace and reads digits up to the first non-digit.
readWord(). Method in class prominence.io.ASCIIInputStream
Reads an ASCII-format word from the attached stream; skips any preceeding whitespace and reads the next consecutive sequence of non-whitespace characters.
receive(). Method in class prominence.msg.MessageInput
Receives a new message from the attached channel and makes it available to read through the standard DataInputStream methods.
receive(). Method in class prominence.msg.MessageInputStream
Receives a message from the attached stream.
receive(). Method in class prominence.msg.MultiplexInputStream
Receives a new message from i and strips the multiplexing label.
receive(). Method in class prominence.msg.QueueInputStream
Extracts a message from the attached Queue and makes it available to read through the usual superclass read() methods.
receive(). Method in class prominence.msg.RoutingInputStream
Receives a new message from i and strips the routing header.
receive(). Method in class part2.chapter11.UDPEchoServer
receive(DataInputStream). Method in class prominence.chat.Chatboard
We implement the ChatClient interface so this method is not used.
receive(DataInputStream). Method in class part3.chapter21.ChatboardClient
receive(DataInputStream). Method in interface prominence.msg.Client
Receives a message from a peer tool.
receive(DataInputStream). Method in interface prominence.msg.Recipient
Delivers a new message to the recipient.
receive(DataInputStream). Method in class prominence.chat.Registry
Receives a message from the ChatSystemHandler, and updates the client list accordingly.
receive(DataInputStream). Method in class part3.chapter18.Whiteboard
receive(DataInputStream). Method in class prominence.chat.Whiteboard
Receives a message from a peer Whiteboard.
receive(DataInputStream, String). Method in class prominence.chat.Chatboard
Receives a message from the peer Chatboard of the indicated client.
receive(DataInputStream, String). Method in interface prominence.chat.ChatClient
Receives a message from a peer tool.
receive(DataInputStream, String). Method in interface prominence.msgx.SourceIDClient
Receives a messages from a peer tool.
receivePacket(). Method in class part2.chapter11.SureDelivery
receiver(InputStream). Method in class part3.chapter16.MessageEg
register(String, Client). Method in class prominence.msg.GenericClient
Registers a tool for a particular multiplexing label.
register(String, MessageOutput). Method in class prominence.msg.Demultiplexer
Registers a MessageOutput as the destination for messages with a particular label.
register(String, MessageOutput). Method in class prominence.msg.Router
Registers a MessageOutput as the destination for messages to a particular target.
registry. Variable in class prominence.msg.GenericClient
A Queue used to hold outgoing messages.
Registry(). Constructor for class prominence.chat.Registry
Creates a new Registry which contains an empty List of client names and a Button to clear the current selection.
remove(). Method in class prominence.util.Queue
Attempts to remove an object from the queue; blocks if there are no objects in the queue.
reset(). Method in class prominence.io.MarkResetFileInputStream
Resets the file pointer to the previously marked position.
ResetByteArrayOutputStream(). Constructor for class prominence.io.ResetByteArrayOutputStream
Creates a new ResetByteArrayOutputStream with the default initial buffer size.
ResetByteArrayOutputStream(int). Constructor for class prominence.io.ResetByteArrayOutputStream
Creates a new ResetByteArrayOutputStream with a specified initial buffer size.
route(). Method in class prominence.msg.GenericHandler
Routes incoming messages from the client.
Router(RoutingInputStream). Constructor for class prominence.msg.Router
Creates a new Router reading from a specified stream.
routes. Variable in class prominence.msg.Demultiplexer
The message routing table.
routes. Variable in class prominence.msg.GenericHandler
The server routing table.
routes. Variable in class prominence.msg.GenericServer
The server routing table.
routes. Variable in class prominence.msg.Router
The message routing table.
RoutingInputStream(MessageInput). Constructor for class prominence.msg.RoutingInputStream
Creates a new RoutingInputStream.
RoutingOutputStream(MessageOutput). Constructor for class prominence.msg.RoutingOutputStream
Creates a new RoutingOutputStream.
run(). Method in class prominence.util.Alarm
Sleeps for the specified delay and then calls the targets alarmCall() method.
run(). Method in class part3.chapter18.Chatboard
run(). Method in class part3.chapter15.ChatClient
run(). Method in class part3.chapter15.ChatHandler
run(). Method in class prominence.chat.ChatSystemServer
The main server thread enters this method, accepts new client connections and launches ChatSystemHandlers to process them.
run(). Method in class part2.chapter13.Consumer
run(). Method in class part4.chapter27.DateServer
run(). Method in class prominence.msg.Demultiplexer
Routes messages from the MultiplexInputStream to the MessageOutput identified by their labels.
run(). Method in class prominence.msg.GenericClient
Transfers messages from the outbound Queue out to the server, and routes incoming messages from the server to the appropriate tool.
run(). Method in class prominence.msg.GenericHandler
Reads the client name, attempts to register in the server routing table, and if successful, proceeds to route messages to and from the client.
run(). Method in class prominence.msg.GenericMessageCopier
Relays messages from i to o, stopping sibling if an exception is encountered.
run(). Method in class prominence.msgx.GenericRegistryServer
Accepts new client connections and passes them on to new GenericRegistryHandlers for processing.
run(). Method in class prominence.msg.GenericServer
Accepts new client connections and passes them on to new GenericHandlers for processing.
run(). Method in class prominence.msgx.GenericSourceIDServer
Accepts new client connections and passes them on to new GenericSourceIDHandlers for processing.
run(). Method in class prominence.msg.MessageCopier
Relays messages from i to o.
run(). Method in class part3.chapter16.MessageEg
run(). Method in class part2.chapter10.MTEchoServer
Executed by a client's handler thread, sends an initial message and then echos all data back to the client until the connection is closed.
run(). Method in class part2.chapter8.PipeTest
run(). Method in class prominence.msg.Router
Routes messages from the RoutingInputStream to the MessageOutputs identified by their routing headers.
run(). Method in class part2.chapter13.SubThread
run(). Method in class part2.chapter13.ThreadDemo
run(). Method in class part3.chapter16.TransactionServer

S

s. Variable in class part3.chapter15.ChatHandler
s. Variable in class prominence.msg.GenericServer
The server socket.
s. Variable in class part2.chapter10.MTEchoServer
A Socket connection to the client.
scribble(int, int). Method in class part3.chapter18.Whiteboard
scribble(int, int). Method in class prominence.chat.Whiteboard
Draws a line segment to the screen between oX, oY and the new coordinates.
send(). Method in class prominence.msg.DeliveryOutputStream
Delivers the current message contents to the designated recipient.
send(). Method in class prominence.msg.MessageOutput
Sends the current message to the attached channel.
send(). Method in class prominence.msg.MessageOutputStream
Sends a message to the attached stream.
send(). Method in class prominence.msg.MultiplexOutputStream
Sends the current message with a multiplexing label header to the attached MessageOutput.
send(). Method in class prominence.msg.QueueOutputStream
Inserts the current message buffer into the Queue.
send(). Method in class prominence.msg.RoutingOutputStream
Sends the current message with a null routing list; this is usually interpreted as a broadcast.
send(byte[], MessageOutput). Method in class prominence.chat.ChatSystemHandler
Sends a message to the specified destination.
send(byte[], MessageOutput). Method in class prominence.msg.GenericHandler
Sends a message body to a specified MessageOutput.
send(byte[], MessageOutput). Method in class prominence.msgx.GenericSourceIDHandler
Sends a message body to a specified MessageOutput.
send(String). Method in class prominence.msg.MessageOutput
Sends the current message to the attached channel with a routing header that indicates a single recipient.
send(String[]). Method in class prominence.msg.MessageOutput
Sends the current message to the attached channel with a routing header that indicates a list of recipients.
send(String[]). Method in class prominence.msg.MultiplexOutputStream
Sends the current message with a multiplexing label header to the attached MessageOutput.
send(String[]). Method in class prominence.msg.RoutingOutputStream
Sends the current message with the specified routing list.
sendEcho(InetAddress, int, byte[], int). Method in class part2.chapter11.UDPEchoServer
sender(OutputStream). Method in class part3.chapter16.MessageEg
sendPacket(). Method in class part2.chapter11.SureDelivery
sendRequest(OutputStream). Method in class prominence.url.HTTPURLConnection
Sends a HTTP/1.0 request to the server.
setMessageOutput(MessageOutput). Method in class part3.chapter18.Chatboard
setMessageOutput(MessageOutput). Method in class prominence.chat.Chatboard
Assigns a message output stream over which this tool can communicate.
setMessageOutput(MessageOutput). Method in interface prominence.msg.Client
Assigns the Client a message output stream through which it should perform all communications.
setMessageOutput(MessageOutput). Method in class prominence.chat.Registry
Assigns a message stream over which this tool can communicate.
setMessageOutput(MessageOutput). Method in class part3.chapter18.Whiteboard
setMessageOutput(MessageOutput). Method in class prominence.chat.Whiteboard
Assigns a message output stream over which this tool can communicate.
sibling. Variable in class prominence.msg.GenericMessageCopier
The sibling thread to be stopped should an error be encountered.
SimpleIn(). Constructor for class part2.chapter4.SimpleIn
SimpleOut(). Constructor for class part2.chapter4.SimpleOut
socket. Variable in class part2.chapter11.SureDelivery
socket. Variable in class part2.chapter11.UDPEchoServer
STServer(). Constructor for class part2.chapter10.STServer
SubThread(). Constructor for class part2.chapter13.SubThread
SureDelivery(String, String, int). Constructor for class part2.chapter11.SureDelivery

T

target. Variable in class prominence.util.Alarm
The target Alarmable object.
target. Variable in class prominence.msg.RoutingInputStream
The routing list from the most recently received message.
targets(). Method in class prominence.chat.Registry
Returns a list of the currently selected client names.
Tee(InputStream). Constructor for class part2.chapter4.Tee
Tee(InputStream, int). Constructor for class part2.chapter4.Tee
TeeOutputStream(Enumeration). Constructor for class prominence.io.TeeOutputStream
Creates a new TeeOutputStream attached to an Enumeration of OutputStreams.
TeeOutputStream(OutputStream, OutputStream). Constructor for class prominence.io.TeeOutputStream
Creates a new TeeOutputStream attached to two OutputStreams.
TeeOutputStreamEg(). Constructor for class part2.chapter7.TeeOutputStreamEg
TextPlainContentHandler(). Constructor for class prominence.url.TextPlainContentHandler
thawColors(). Method in class part4.chapter27.FavoriteColors
ThreadDemo(). Constructor for class part2.chapter13.ThreadDemo
time. Variable in class prominence.util.Alarm
The alarm delay.
toByteArray(). Method in class prominence.io.ResetByteArrayOutputStream
Extracts the contents of the buffer as an array of bytes, and then resets the internal buffer.
TransactionClient(InputStream, OutputStream). Constructor for class part3.chapter16.TransactionClient
TransactionServer(InputStream, OutputStream). Constructor for class part3.chapter16.TransactionServer
transmit(int, int). Method in class part3.chapter18.Whiteboard
transmit(int, int). Method in class prominence.chat.Whiteboard
Transmits new coordinates to the message stream, and assigns new values to oX and oY.
type. Variable in class prominence.io.PostOutputStream
The data content-type.

U

UDPEchoServer(int). Constructor for class part2.chapter11.UDPEchoServer
unread(int). Method in class prominence.io.ASCIIInputStream
Unreads a single byte of data.
url. Variable in class prominence.io.PostOutputStream
The target URL.
URLConnectionEg(). Constructor for class part2.chapter12.URLConnectionEg
URLEg(). Constructor for class part2.chapter12.URLEg
URLStreamHandlerFactoryImpl(). Constructor for class prominence.url.URLStreamHandlerFactoryImpl

V

value. Variable in class part3.chapter16.TransactionClient

W

Whiteboard(). Constructor for class part3.chapter18.Whiteboard
Whiteboard(). Constructor for class prominence.chat.Whiteboard
Creates a new Whiteboard with an off-white background.
WhiteboardClient(). Constructor for class part3.chapter21.WhiteboardClient
write(byte[], int, int). Method in class prominence.io.TeeOutputStream
Writes a subarray of bytes to all of the attached streams.
write(int). Method in class prominence.io.AppendFileOutputStream
Writes a byte to the open file.
write(int). Method in class prominence.io.TeeOutputStream
Writes a byte of data to all of the attached streams.
writeBytes(String). Method in class prominence.io.PostOutputStream
Writes a String as a sequence of bytes by stripping the high-byte from each character.
writeInt(int). Method in class prominence.io.ASCIIOutputStream
Writes an integer in ASCII format.
writeInt(int). Method in class part2.chapter6.DataFileOutputStream
writeString(String). Method in class prominence.io.ASCIIOutputStream
Writes a String in ASCII format, discarding the top byte of every character.
writeTag(String, String). Method in class prominence.io.PostOutputStream
Writes a tag-value pair in URL-encoded form.
writeTags(Hashtable). Method in class prominence.io.PostOutputStream
Write the contents of a Hashtable as a sequence of tag-value pairs.
writeTo(OutputStream). Method in class prominence.io.ResetByteArrayOutputStream
Writes the contents of the buffer to a specified OutputStream and then resets the internal buffer.
writeTo(OutputStream). Method in class part2.chapter4.Tee
ws(). Method in class prominence.io.ASCIIInputStream
Skips any immediate whitespace in the attached stream.