Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.lutris.util.tests.* (6)

com.lutris.util: Javadoc index of package com.lutris.util.


Package Samples:

com.lutris.util.tests

Classes:

ConfigFile: ConfigFile is used to manipulate Multiserver configuration (.conf) files. Presents all configuration elements in the form of a keyed table. Configuration elements are grouped by string "keys" according to the function they configure. The syntax is described more formally below. stream ::= entry | stream entry entry ::= key "=" value_list | comment | blank value_list ::= value | value_list "," value value ::= fragment | value "+" fragment fragment ::= key | quoted_string quoted_string ::= (C/C++ style quoted string) key ::= (A string matching [A-Za-z_\./][A-Za-z0-9_-\./]*) comment ::= "#" (any text ...
OutputStreamEventQueue: A queue of "events". Each event is a write to the OutputStream. This class implements both the reader and writer half of the queue. Each "event" is returned as an OutputStreamEventQueueEntry object. The "writer" interface is the set of OutputStream calls. This class extends OutputStream, overriding all the OutputStream methods. All data written to this object is stored up as "events" in an internal queue. Each write is a separate event, so sometimes you will get one event with data followed by one with just a newline. You can pass objects of this class to anything that expects and OutputStream. ...
KeywordValueTable: Class that implements a recursive keyword/value table. The key is a string that is restricted to be a valid Java identifier. That is, starting with an letter and containing letters or digits. The characters '_' and '$' are also allowed and are treated as letters. The value maybe any object. A keyword and its value are collectively referred to as a field The table is recursive. Values of class KeywordValueTable are referred to as sections . A field of a section maybe addressed from the parent object using a dot ('.') separated name path.
LRUCache: This class implements a fixed size Least-Recently-Used cache. The cache has a maximum size specified when it is created. When an item is added to the cache, if the cache is already at the maximum size the least recently used item is deleted, then the new item is added. The only two methods that count as "using" the object (for the least-recently-used algorithm) are add() and get() . The items cached are refered to by keys, just like a Hashtable.
OutputStreamHub: This class implements a "hub", or redistribution center. Like a "Y" connector for garden hoses, but with an arbitrary number of outputs, not just 2. Instances of this class maintain teir own set of OutputStreams. When you create an instance of this class, the set is empty. Writes to the hub have no effect. call add() to register OutputStreams with the hub. All OutputStream calls are routed to all the current members of the set.
HtmlEncoder: This class contains a utility method for encoding a String so that it may be safely embedded within a HTML document without affecting the formatting of the document. The following characters are encoded: < > & ' " \ …
BMByteSearchStream: Implements the Boyer-Moore pattern matching algorithm for a given byte pattern. This object implements searches on byte-oriented input streams. The algorithm was obtained from "Computer Algorithms - Introduction to Design and Analysis, Second Edition" by Sara Baase.
ConfigException: Exception class thrown by class Config . If a syntax error is found in the configuration input stream, or if a component expects a data format for which a configuration element cannot be converted, then this exception is thrown to indicate the error.
BMByteSearch: Implements the Boyer-Moore pattern matching algorithm for a given byte pattern. This object implements searches on signed byte arrays. The algorithm was obtained from "Computer Algorithms - Introduction to Design and Analysis, Second Edition" by Sara Baase.
BytesToString: This class has static methods which convert arrays of bytes to a strings. It remaps non-ascii bytes to ".". One use for this class is to convert raw data read in from a file or the net to a human-readable form, probably for debugging.
JavaScriptEncoder: This class contains a utility method for encoding a String so that it may be safely used within JavaScript as a quoted string. The following characters are encoded: ' " \
ChainedRuntimeException: RuntimeException used as a base for creating an exception that has a chain of exceptions that lead to the derived exception. Very useful for interfaces where the implementation exception is not known.
ChainedException: Exception used as a base for creating an exception that has a chain of exceptions that lead to the derived exception. Very useful for interfaces where the implementation exception is not known.
ChainedError: Error used as a base for creating an error that has a chain of exceptions that lead to the derived error. Very useful for interfaces where the implementation exception is not known.
Convert: Various conversion methods. These methods are mostly used to convert internal java data fields into byte arrays or strings for use over the network or in 8 bit ASCII fields.
OutputStreamEventQueueEntry: This is a helper class for OutputStreamEventQueue. It describes one event (one call to write()). Only the OutputStreamEventQueue should create instances of this class.
Config: Config is essentially a KeywordValueTable used for recursive storage of data derived from a config file. The contents is initialized but ConfigFile .
HexEncoder: Various conversion methods. These methods are mostly used to convert internal java data fields into byte arrays or strings for use in 8 bit ASCII fields.
Base64Encoder: Various conversion methods. These methods are mostly used to convert internal java data fields into byte arrays or strings for use over the network.
KeywordValueException: Exception for errors accessing a KeywordValueTable object. The errors can include invalid keyword syntax and unknown keywords.
ChainedThrowable: Interfaces for all of the Chained* throwables. This defines the common methods that all implement.
FilePersistentStoreTests: Class that tests the FilePersistentStore object. TODO: more robust tests are needed.
PersistentStoreException: This exception is thrown by objects that implement persistent storage.
QuotedString: Static convenience class for parsing various types of quoted strings.

Home | Contact Us | Privacy Policy | Terms of Service