| Home >> All >> jreceiver >> [ util Javadoc ] |
| | jreceiver.util.taglibs.* (3) | | jreceiver.util.text.* (10) |
jreceiver.util: Javadoc index of package jreceiver.util.
Package Samples:
jreceiver.util.taglibs
jreceiver.util.text
Classes:
MessageFormatB: A mirror of the MessageFormat class for encoding byte arrays. As with MessageFormat, arguments may be in any order. Unlike MessageFormat, you may use more than ten (10) arguments and may use each more than once in the format string. String example: String pattern = "{0}{1,string}{2,string,pp}{3,string,zt}{4,pp,UTF-8}"; MessageFormatB mfb = new MessageFormatB(pattern); Object[] objs = { "foo", "foo", "bar", "baz", "buzz" }; byte[] = mfb.format(objs); The above pattern will format all its arguments as Strings using the StringFormatB() formatter and output as an array of bytes. All objects will be ...
WordFormatB: Formatter to output an object in 4 bytes. Implementation presently assumes 4-byte integers. Word example: String pattern = "{0,word}{1,word,be}{2,word,le}"; MessageFormatB mfb = new MessageFormatB(pattern); Object[] objs = { new Integer(0xAABBCCDD), new Integer(0xAABBCCDD), new Integer(0xAABBCCDD) }; byte[] = mfb.format(objs); {0,word} encoded as a 4-byte word using the default big-endian (Mac) order (result = AA BB CC DD) {1,word,be} same as {0} {2,word,le} encoded as a 4-byte word using the little-endian (Intel) order (result = DD CC BB AA) There are two byte orders available for formatting words: ...
PageNavigationTag: JSP Tag pageNavigation , used to display an array of page numbers to traverse a large set of data. Required attributes are total_pages and page_no . url_pattern is optional and defaults to page{0}.html which produces page1.html, page2.html, etc. It uses a MessageFormat pattern where {0} is replaced by the page number (pageNo) and {1} is replaced by the page count (totalPages). Example of default output for page numbers 1 through 16: > > > > > > > > > > > > > > > > Example usage:
StringFormatB: Formatter to output an object as a String Example: String pattern = "{0}{1,string}{2,string,pp}{3,string,zt}{4,pp,UTF-8}"; MessageFormatB mfb = new MessageFormatB(pattern); Object[] objs = { "foo", "foo", "bar", "baz", "buzz" }; byte[] = mfb.format(objs); The above pattern will format all its arguments as Strings using the StringFormatB() formatter and output as an array of bytes. All objects will be coerced to strings using their toString() methods. {0} stored in byte array as "foo" using the default encoding (3 bytes) {1,string} same as {0} {2,string,pp} "bar" is stored with default encoding ...
CompactFormat: format a number in a brief and human-friendly manner E.g., shortens 2362352523L to "2.6G" Other examples of output: 1.8G, 997M, 3.0T, 1.3K, 342 TODO: add a 3,956K option like can be found in Windows explorer. TODO: determine if localization can or should be done.
CompactFormatTag: JSP Tag compactFormat , used to format a number for both compact and human-readable display. The number as a long is obtained from the body of the tag. Uses the optional attribute blocksize when formatting the number.
DurationFormatTag: JSP Tag compactFormat , used to format a number for both compact and human-readable display. The number as a integer is obtained from the body of the tag.
ScheduledDaemon: Generic daemon to which clients can subscribe to status messages and whose worker thread can be scheduled to run periodically.
HelperMap: routines for using Maps TODO: consider renaming to reflect the presence of the list and safe methods
HelperFile: miscellaneous File-related routines TODO: de/compose are obsolete and will be removed soon.
HexNumberFormat: Adapted from ice.com's HexNumberFormat, used to format Hexidecimal integer numbers.
Daemon: Generic daemon to which clients can subscribe to status messages.
MessageFormatCallback: Convenience callback for use with MessageFormat or MessageFormatB
FormatB: RpcBase Formatter for the byte-centric version of MessageFormat
HelperServlet: Various static helper functions for servlet-related tasks.
DaemonException: The daemon exception class for the JReceiver project.
EventListenerList: used to notify listeners to registered events
ExpiringWriter: A non-blocking OutputStream writer
HexDump: adapted from ice.com's HexDump
HelperImage: routines for using Maps
HelperMessageFormat: routines for using Maps
HelperMisc: miscellaneous routines
HelperStr: string routines
| Home | Contact Us | Privacy Policy | Terms of Service |