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

B

BlindContentDownloader - Class in com.monkeycoder.monkeynetwork
This ContentDownloader blindly accepts incoming data until the server ends the connection.
BlindContentDownloader(HttpHeaderData) - Constructor for class com.monkeycoder.monkeynetwork.BlindContentDownloader
Creates a new BlindContentDownloader.
blockFetch(String) - Method in class com.monkeycoder.monkeynetwork.MonkeyNetwork
Simplified blocking call to fetch content from the network.

C

ChunkedContentDownloader - Class in com.monkeycoder.monkeynetwork
This ContentDownloader handles incoming data that is chunked.
ChunkedContentDownloader(HttpHeaderData) - Constructor for class com.monkeycoder.monkeynetwork.ChunkedContentDownloader
Creates a new ChunkedContentDownloader.
com.monkeycoder.monkeynetwork - package com.monkeycoder.monkeynetwork
 
conAddr - Variable in class com.monkeycoder.monkeynetwork.Network
The underlying InetSocketAddress used to create the connection.
connect() - Method in class com.monkeycoder.monkeynetwork.Network
Connects this network.
ConnectionSpeedTimer - Class in com.monkeycoder.monkeynetwork
This class is used for tracking the download rate.
ConnectionSpeedTimer() - Constructor for class com.monkeycoder.monkeynetwork.ConnectionSpeedTimer
Creates a new ConnectionSpeedTimer.
ConnectionSpeedTimer(boolean) - Constructor for class com.monkeycoder.monkeynetwork.ConnectionSpeedTimer
Creates a new ConnectionSpeedTimer and optionally starts it.
ConnectionTimeOutTimer - Class in com.monkeycoder.monkeynetwork
This class acts as a pollable countdown timer.
ConnectionTimeOutTimer() - Constructor for class com.monkeycoder.monkeynetwork.ConnectionTimeOutTimer
Creates a new ConnectionTimeOutTimer.
ConnectionTimeOutTimer(boolean) - Constructor for class com.monkeycoder.monkeynetwork.ConnectionTimeOutTimer
Creates a new ConnectionTimeOutTimer.
ConnectionTimeOutTimer(boolean, long) - Constructor for class com.monkeycoder.monkeynetwork.ConnectionTimeOutTimer
Creates a new ConnectionTimeOutTimer.
content - Variable in class com.monkeycoder.monkeynetwork.ProtocolStateEngine
The underlying TurboBuffer into which network content will be placed.
ContentDownloader - Class in com.monkeycoder.monkeynetwork
Superclass for all ContentDownloaders.
ContentDownloader(HttpHeaderData) - Constructor for class com.monkeycoder.monkeynetwork.ContentDownloader
Creates a ContentDownloader
ContentLengthContentDownloader - Class in com.monkeycoder.monkeynetwork
This ContentDownloader handles incoming data where the exact length of the content is known.
ContentLengthContentDownloader(HttpHeaderData) - Constructor for class com.monkeycoder.monkeynetwork.ContentLengthContentDownloader
Creates a new ContentLengthContentDownloader.

D

DebugLog - Class in com.monkeycoder.monkeynetwork
This class is a logger singleton that can direct log output to several places.
disconnect() - Method in class com.monkeycoder.monkeynetwork.Network
Disconnects this network.
download(TurboBuffer, InputStream) - Method in class com.monkeycoder.monkeynetwork.BlindContentDownloader
Does the actual downloading of the requested content.
download(TurboBuffer, InputStream) - Method in class com.monkeycoder.monkeynetwork.ChunkedContentDownloader
Does the actual downloading of the requested content.
download(TurboBuffer, InputStream) - Method in class com.monkeycoder.monkeynetwork.ContentDownloader
Does the actual downloading of the requested content.
download(TurboBuffer, InputStream) - Method in class com.monkeycoder.monkeynetwork.ContentLengthContentDownloader
Does the actual downloading of the requested content.
download(TurboBuffer, InputStream) - Method in class com.monkeycoder.monkeynetwork.HeaderContentDownloader
Does the actual downloading of the requested content.
dumpToFile(File) - Method in class com.monkeycoder.monkeynetwork.TurboBuffer
Dumps the contents of the TurboBuffer to a File.

F

fetch(String) - Method in class com.monkeycoder.monkeynetwork.FtpNetwork
Fetches web content via the transport medium specified by this network.
fetch(String) - Method in class com.monkeycoder.monkeynetwork.HttpNetwork
Fetches web content via the transport medium specified by this network.
fetch(String) - Method in class com.monkeycoder.monkeynetwork.MonkeyNetwork
Standard non-blocking call to fetch content from the network.
fetch(String) - Method in class com.monkeycoder.monkeynetwork.Network
Fetches web content via the transport medium specified by this network.
fetchUri - Variable in class com.monkeycoder.monkeynetwork.ProtocolStateEngine
The URI of the content to request.
FtpNetwork - Class in com.monkeycoder.monkeynetwork
This class handles an FTP Network.
FtpNetwork() - Constructor for class com.monkeycoder.monkeynetwork.FtpNetwork
Creates an FTP Network.
FtpStateEngine - Class in com.monkeycoder.monkeynetwork
This class handles FTP Fetching and state maintenance.
FtpStateEngine() - Constructor for class com.monkeycoder.monkeynetwork.FtpStateEngine
Creates a state engine for handling FTP network traffic.

G

getAverageSpeed(int) - Method in class com.monkeycoder.monkeynetwork.ConnectionSpeedTimer
Returns average speed in rounded bytes/sec.
getConfig(String) - Static method in class com.monkeycoder.monkeynetwork.GlobalConfig
Returns the requested config value as a String.
getConfigAsBoolean(String) - Static method in class com.monkeycoder.monkeynetwork.GlobalConfig
Returns the requested config value as a boolean.
getConfigAsDouble(String) - Static method in class com.monkeycoder.monkeynetwork.GlobalConfig
Returns the requested config value as a double.
getConfigAsFloat(String) - Static method in class com.monkeycoder.monkeynetwork.GlobalConfig
Returns the requested config value as a float.
getConfigAsInt(String) - Static method in class com.monkeycoder.monkeynetwork.GlobalConfig
Returns the requested config value as an int.
getConfigAsLong(String) - Static method in class com.monkeycoder.monkeynetwork.GlobalConfig
Returns the requested config value as a long.
getContent() - Method in class com.monkeycoder.monkeynetwork.Network
Gets the downloaded content.
getContent() - Method in class com.monkeycoder.monkeynetwork.ProtocolStateEngine
Gets the TurboBuffer that was used by the state engine.
getConvertedValue(long) - Static method in class com.monkeycoder.monkeynetwork.SizeConverter
Returns a String containing the converted value with the appropriate unit appended.
getData() - Method in class com.monkeycoder.monkeynetwork.UpdateMessage
Returns the data of this message.
getDataAsString() - Method in class com.monkeycoder.monkeynetwork.UpdateMessage
Returns the data of this message as a String.
getEndpointHost() - Method in class com.monkeycoder.monkeynetwork.Network
Get the host of the Endpoint.
getEndpointPort() - Method in class com.monkeycoder.monkeynetwork.Network
Get the port of the Endpoint.
getHeaderValue(String) - Method in class com.monkeycoder.monkeynetwork.HttpHeaderData
Gets the HTTP Header value for the specified key.
getHeaderValues(String) - Method in class com.monkeycoder.monkeynetwork.HttpHeaderData
Gets all HTTP Header values for the specified key.
getHost() - Method in class com.monkeycoder.monkeynetwork.MonkeyUrl
Gets the remote host of the URL.
getHttpMajorVersion() - Method in class com.monkeycoder.monkeynetwork.HttpHeaderData
Gets the HTTP Major version number.
getHttpMinorVersion() - Method in class com.monkeycoder.monkeynetwork.HttpHeaderData
Gets the HTTP Minor version number.
getInputStream() - Method in class com.monkeycoder.monkeynetwork.Network
Gets an InputStream for this network connection.
getInputStream() - Method in class com.monkeycoder.monkeynetwork.TurboBuffer
Request an InputStream providing access to the data stored in the TurboBuffer.
getInst() - Static method in class com.monkeycoder.monkeynetwork.DebugLog
Returns the only allowed instance of this class.
getKeys() - Method in class com.monkeycoder.monkeynetwork.HttpHeaderData
Get a list of available keys from this HTTP Header.
getMode() - Static method in class com.monkeycoder.monkeynetwork.DebugLog
Returns the current redirection mode.
getNetwork(int) - Static method in class com.monkeycoder.monkeynetwork.NetworkFactory
Factory function for generating Network objects.
getNetworkProtocol() - Method in class com.monkeycoder.monkeynetwork.FtpNetwork
Get the protocol of this network object.
getNetworkProtocol() - Method in class com.monkeycoder.monkeynetwork.HttpNetwork
Get the protocol of this network object.
getNetworkProtocol() - Method in class com.monkeycoder.monkeynetwork.Network
Get the protocol of this network object.
getOutputStream() - Method in class com.monkeycoder.monkeynetwork.Network
Gets an OutputStream for this network connection.
getPort() - Method in class com.monkeycoder.monkeynetwork.MonkeyUrl
Gets the port on the remote host of the URL.
getProtocol() - Method in class com.monkeycoder.monkeynetwork.MonkeyUrl
Gets the protocol as an integer specified by NetworkProtocol.
getProtocol(String) - Static method in class com.monkeycoder.monkeynetwork.NetworkProtocol
Get the protocol number based on a pre-trimmed protocol portion of a URL.
getRawHeader() - Method in class com.monkeycoder.monkeynetwork.HttpHeaderData
Get the original raw HTTP Header.
getResponseCode() - Method in class com.monkeycoder.monkeynetwork.HttpHeaderData
Gets the HTTP Response Code number.
getResponseMessage() - Method in class com.monkeycoder.monkeynetwork.HttpHeaderData
Gets the HTTP Response message.
getSpeed(int) - Method in class com.monkeycoder.monkeynetwork.ConnectionSpeedTimer
Returns instantaneous speed in rounded bytes/sec.
getType() - Method in class com.monkeycoder.monkeynetwork.UpdateMessage
Returns the type of this message.
getUri() - Method in class com.monkeycoder.monkeynetwork.MonkeyUrl
Gets the request URI of the URL.
getUrl() - Method in class com.monkeycoder.monkeynetwork.MonkeyUrl
Get the original raw URL.
getVerbosity() - Static method in class com.monkeycoder.monkeynetwork.DebugLog
Returns the current verbosity threshhold.
GlobalConfig - Class in com.monkeycoder.monkeynetwork
Global Configuration Singleton.

H

HeaderContentDownloader - Class in com.monkeycoder.monkeynetwork
This ContentDownloader blindly accepts incoming data until the expected end of the header.
HeaderContentDownloader(HttpHeaderData) - Constructor for class com.monkeycoder.monkeynetwork.HeaderContentDownloader
Creates a new HeaderContentDownloader.
hhd - Variable in class com.monkeycoder.monkeynetwork.ContentDownloader
The response header that is associated with this download, if applicable.
HttpHeaderData - Class in com.monkeycoder.monkeynetwork
This class represents an HTTP response header.
HttpHeaderData(String) - Constructor for class com.monkeycoder.monkeynetwork.HttpHeaderData
Creates an HttpHeaderData using the supplied raw response header.
HttpNetwork - Class in com.monkeycoder.monkeynetwork
This class handles an HTTP Network.
HttpNetwork() - Constructor for class com.monkeycoder.monkeynetwork.HttpNetwork
Creates an HttpNetwork.
HttpStateEngine - Class in com.monkeycoder.monkeynetwork
This class handles HTTP Fetching and state maintenance.
HttpStateEngine() - Constructor for class com.monkeycoder.monkeynetwork.HttpStateEngine
Creates a state engine for handling HTTP network traffic.

I

inStream - Variable in class com.monkeycoder.monkeynetwork.Network
The underlying InputStream.
isConnected() - Method in class com.monkeycoder.monkeynetwork.Network
Check to see whether this network is presently connected.
isTimedOut() - Method in class com.monkeycoder.monkeynetwork.ConnectionTimeOutTimer
Checks whether or not this timer has expired.

L

log(String) - Static method in class com.monkeycoder.monkeynetwork.DebugLog
Records a log entry using the maximum verbosity threshhold of 5.
log(int, String) - Static method in class com.monkeycoder.monkeynetwork.DebugLog
Records a log entry using the provided verbosity threshhold value.

M

magnitudeToken - Static variable in class com.monkeycoder.monkeynetwork.SizeConverter
 
magnitudeValue - Static variable in class com.monkeycoder.monkeynetwork.SizeConverter
 
main(String[]) - Static method in class com.monkeycoder.monkeynetwork.MonkeyNetworkTester
Starting point for the test driver.
MODE_FILE - Static variable in class com.monkeycoder.monkeynetwork.DebugLog
 
MODE_NULL - Static variable in class com.monkeycoder.monkeynetwork.DebugLog
 
MODE_STD_ERR - Static variable in class com.monkeycoder.monkeynetwork.DebugLog
 
MODE_STD_OUT - Static variable in class com.monkeycoder.monkeynetwork.DebugLog
 
MonkeyException - Exception in com.monkeycoder.monkeynetwork
Generic exception class for exceptions thrown by the MonkeyNetwork system.
MonkeyException() - Constructor for exception com.monkeycoder.monkeynetwork.MonkeyException
Constructs a new exception with null as its detail message.
MonkeyException(String) - Constructor for exception com.monkeycoder.monkeynetwork.MonkeyException
Constructs a new exception with the specified detail message.
MonkeyException(String, Throwable) - Constructor for exception com.monkeycoder.monkeynetwork.MonkeyException
Constructs a new exception with the specified detail message and cause.
MonkeyException(Throwable) - Constructor for exception com.monkeycoder.monkeynetwork.MonkeyException
Constructs a new exception with the specified cause.
MonkeyNetwork - Class in com.monkeycoder.monkeynetwork
This is the simplified access point for the MonkeyNetwork system.
MonkeyNetwork() - Constructor for class com.monkeycoder.monkeynetwork.MonkeyNetwork
This is the simplified access point for the MonkeyNetwork system.
MonkeyNetworkTester - Class in com.monkeycoder.monkeynetwork
This is a driver class for testing the MonkeyNetwork system.
MonkeyUrl - Class in com.monkeycoder.monkeynetwork
This is a self contained URL parsing class.
MonkeyUrl(String) - Constructor for class com.monkeycoder.monkeynetwork.MonkeyUrl
Creates a MonkeyUrl using the supplied raw URL.
MonkeyUrl(String, int) - Constructor for class com.monkeycoder.monkeynetwork.MonkeyUrl
Creates a MonkeyUrl using the supplied raw URL and supplied default protocol specified by NetworkProtocol.

N

net - Variable in class com.monkeycoder.monkeynetwork.ProtocolStateEngine
The underlying Network from which network content will be downloaded.
Network - Class in com.monkeycoder.monkeynetwork
This is the super class for all other network objects within the MonkeyNetwork system.
Network() - Constructor for class com.monkeycoder.monkeynetwork.Network
Super Constructor, this is where Network type inspecific things are done.
NetworkFactory - Class in com.monkeycoder.monkeynetwork
This class is for creating network objects by protocol.
NetworkProtocol - Class in com.monkeycoder.monkeynetwork
This class contains definitions of protocols supported by MonkeyNetwork.
nextState - Variable in class com.monkeycoder.monkeynetwork.ProtocolStateEngine
The current state of the engine.

O

outStream - Variable in class com.monkeycoder.monkeynetwork.Network
The underlying OutputStream.

P

printAllConfigs() - Static method in class com.monkeycoder.monkeynetwork.GlobalConfig
Outputs to the console all known configuration keys with their current values.
PROTOCOL_FTP - Static variable in class com.monkeycoder.monkeynetwork.NetworkProtocol
File Transfer Protocol.
PROTOCOL_HTTP - Static variable in class com.monkeycoder.monkeynetwork.NetworkProtocol
Hypertext Transport Protocol 1.1.
PROTOCOL_NONE - Static variable in class com.monkeycoder.monkeynetwork.NetworkProtocol
Unknown or No protocol.
protocolFullName - Static variable in class com.monkeycoder.monkeynetwork.NetworkProtocol
Full name of each protocol.
protocolName - Static variable in class com.monkeycoder.monkeynetwork.NetworkProtocol
Textual representation of each protocol.
protocolPort - Static variable in class com.monkeycoder.monkeynetwork.NetworkProtocol
Default access port for this protocol.
protocolRfc - Static variable in class com.monkeycoder.monkeynetwork.NetworkProtocol
RFC of each protocol for informational purposes.
ProtocolStateEngine - Class in com.monkeycoder.monkeynetwork
This is the super-class for protocol state engines.
ProtocolStateEngine() - Constructor for class com.monkeycoder.monkeynetwork.ProtocolStateEngine
Creates a ProtocolStateEngine.
protocolUrl - Static variable in class com.monkeycoder.monkeynetwork.NetworkProtocol
Start of a URL using each protocol.

R

reset() - Method in class com.monkeycoder.monkeynetwork.TurboBuffer
Fully resets this TurboBuffer.
restoreLastMode() - Static method in class com.monkeycoder.monkeynetwork.DebugLog
Puts the DebugLog back into its previous redirection mode.
restoreLastVerbosity() - Static method in class com.monkeycoder.monkeynetwork.DebugLog
Puts the DebugLog back into its previous verbosity threshhold.
run() - Method in class com.monkeycoder.monkeynetwork.FtpStateEngine
Multi-Threaded entry point.
run() - Method in class com.monkeycoder.monkeynetwork.HttpStateEngine
Multi-Threaded entry point.
run() - Method in class com.monkeycoder.monkeynetwork.ProtocolStateEngine
Multi-Threaded entry point.

S

setEndpoint(String, int) - Method in class com.monkeycoder.monkeynetwork.Network
Set the Endpoint of this connection.
setFetchUri(String) - Method in class com.monkeycoder.monkeynetwork.ProtocolStateEngine
Sets the URI of the content to fetch.
setMode(int) - Static method in class com.monkeycoder.monkeynetwork.DebugLog
Sets the current redirection mode.
setNetwork(Network) - Method in class com.monkeycoder.monkeynetwork.ProtocolStateEngine
Sets the network from which content will be downloaded.
setTimeoutTime(long) - Method in class com.monkeycoder.monkeynetwork.ConnectionTimeOutTimer
Sets how long until this timer reports that it has timed out.
setVerbosity(int) - Static method in class com.monkeycoder.monkeynetwork.DebugLog
Sets the current verbosity threshhold.
SizeConverter - Class in com.monkeycoder.monkeynetwork
Converts raw numbers of bytes into properly formatted numbers of kilobytes, megabytes, gigabytes, or terabytes.
sock - Variable in class com.monkeycoder.monkeynetwork.Network
The underlying Socket.
start() - Method in class com.monkeycoder.monkeynetwork.ConnectionSpeedTimer
Starts the timer.
start() - Method in class com.monkeycoder.monkeynetwork.ConnectionTimeOutTimer
Starts the timer.
STATE_DONE - Static variable in class com.monkeycoder.monkeynetwork.ProtocolStateEngine
Assigned ending state of all ProtocolStateEngine children.
STATE_EVALUATE_ENCODING_TYPE - Static variable in class com.monkeycoder.monkeynetwork.HttpStateEngine
 
STATE_EVALUATE_RESPONSE_CODE - Static variable in class com.monkeycoder.monkeynetwork.HttpStateEngine
 
STATE_GET_RESPONSE_BODY - Static variable in class com.monkeycoder.monkeynetwork.HttpStateEngine
 
STATE_GET_RESPONSE_HEADER - Static variable in class com.monkeycoder.monkeynetwork.HttpStateEngine
 
STATE_SEND_REQUEST - Static variable in class com.monkeycoder.monkeynetwork.HttpStateEngine
 
STATE_SETUP_FETCH_BLIND - Static variable in class com.monkeycoder.monkeynetwork.HttpStateEngine
 
STATE_SETUP_FETCH_CHUNKED - Static variable in class com.monkeycoder.monkeynetwork.HttpStateEngine
 
STATE_SETUP_FETCH_CONTENT_LENGTH - Static variable in class com.monkeycoder.monkeynetwork.HttpStateEngine
 
STATE_START - Static variable in class com.monkeycoder.monkeynetwork.ProtocolStateEngine
Assigned starting state of all ProtocolStateEngine children.
STATE_WAIT - Static variable in class com.monkeycoder.monkeynetwork.HttpStateEngine
 
stateEngine - Variable in class com.monkeycoder.monkeynetwork.Network
The underlying state engine

T

ThreadHelper - Class in com.monkeycoder.monkeynetwork
This class contains Thread use convenience methods.
ThreadHelper() - Constructor for class com.monkeycoder.monkeynetwork.ThreadHelper
 
threadSleep(long) - Static method in class com.monkeycoder.monkeynetwork.ThreadHelper
Thread sleep method designed so sleep based exceptions can be ignored.
toString() - Method in class com.monkeycoder.monkeynetwork.HttpHeaderData
Formats the entire parsed HTTP response header into a String for display.
TurboBuffer - Class in com.monkeycoder.monkeynetwork
This class is for buffering network data quickly and intelligently.
TurboBuffer() - Constructor for class com.monkeycoder.monkeynetwork.TurboBuffer
Creates a TurboBuffer for content storage.

U

update(Observable, Object) - Method in class com.monkeycoder.monkeynetwork.FtpNetwork
Used by the network state engine to pass messages to this class.
update(Observable, Object) - Method in class com.monkeycoder.monkeynetwork.HttpNetwork
Used by the network state engine to pass messages to this class.
update(Observable, Object) - Method in class com.monkeycoder.monkeynetwork.MonkeyNetwork
Used by Network objects to pass messages to this class.
update(Observable, Object) - Method in class com.monkeycoder.monkeynetwork.Network
Used by the network state engine to pass messages to this class.
UPDATE_CONTENT_DOWNLOAD_FAILED - Static variable in class com.monkeycoder.monkeynetwork.UpdateMessage
The requested content download has failed outright.
UPDATE_CONTENT_DOWNLOADED - Static variable in class com.monkeycoder.monkeynetwork.UpdateMessage
Content has completely and successfully downloaded.
UPDATE_INFO_ALT_CONTENT - Static variable in class com.monkeycoder.monkeynetwork.UpdateMessage
Informational, an error was detected and the content is likely an error page instead of the requested content.
UPDATE_INFO_REDIRECTING - Static variable in class com.monkeycoder.monkeynetwork.UpdateMessage
Informational, a 3xx level redirection is taking place.
UPDATE_NONE - Static variable in class com.monkeycoder.monkeynetwork.UpdateMessage
No Message
UpdateMessage - Class in com.monkeycoder.monkeynetwork
Used within MonkeyNetwork as a unified update message.
UpdateMessage(int) - Constructor for class com.monkeycoder.monkeynetwork.UpdateMessage
Initializes a new UpdateMessage to a certain type.
UpdateMessage(int, Object) - Constructor for class com.monkeycoder.monkeynetwork.UpdateMessage
Initializes a new UpdateMessage to a certain type and bundles data with it.
UpdateMessage(int, String) - Constructor for class com.monkeycoder.monkeynetwork.UpdateMessage
Initializes a new UpdateMessage to a certain type and bundles String data with it.

W

write(byte[]) - Method in class com.monkeycoder.monkeynetwork.TurboBuffer
Write an entire array of bytes into the TurboBuffer.
write(byte[], int, int) - Method in class com.monkeycoder.monkeynetwork.TurboBuffer
Write part of an array of bytes into the TurboBuffer.
write(int) - Method in class com.monkeycoder.monkeynetwork.TurboBuffer
Write the least significant byte of a single integer into the TurboBuffer.
write(byte) - Method in class com.monkeycoder.monkeynetwork.TurboBuffer
Write a single byte into the TurboBuffer.

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