Other utility classes in the java.util
package include:
java.util.Timer,
java.util.TimerTask
- this class allows threads to schedule tasks for future
execution via a background thread. The tasks asks can be set up
to run once , or repeatedly run at regular intervals. We discussed
the Timer
class in Chapter 8:
Tech: Timers .
java.util.bitset
- provides a vector of bits that grows as needed. A large set
of methods allow for access and manipulation of the bits. We discuss
bit handling and bitset in Chapter
10: Tech: Bits.
Internationalization tools include:
java.lang.ResourceBundle
- holds locale specific information such as alternative language
strings for buttons, menus, and other GUI text.
java.util.Locale
- specifies a particular geographical, political, or cultural
region.
java.util.Currency
- provides symbols for strings representing currency values
for the particular locale.
java.util.zip
package provides various classes for packing and unpacking files
with either the Zip or Gzip compression systems.
java.util.regex
- package with classes for matching character sequences against
patterns specified by regular expressions. (See brief mention
in String.split()
method discussion.)
java.util.logging
- provides for systematically monitoring of a program for debugging
and performance measures. Added in version 1.4. Logger
Overview - Sun