Java Ranch - Java Certification
Converse with the experts at the Big Moose Saloon Test your java knowledge get some java experience links to other java resources check out these java books
relax and learn some java by the campfire check out java samples hey!, get some style, dude pearls of wisdom from granny paul return to the Javaranch home page


The com.javaranch.common package

This is a collection of classes that I use for a variety of projects I work on. You are welcome to use any of these yourself.

view the javadoc

get all the source and class files in one jar file(you might need to right click and select "save link as...")

AWT

    Contains a collection of static methods related to GUI's (AWT only). Includes a method for drawing a really nice beveled rectangle and aome GridBagConstraints shortcuts.

    view the source

    view the javadoc

ByteVector

    Like the Vector object, except rather than tracking dynamic array of pointers to different objects, this is simply a dynamic array of bytes.

    The advantage is speed and memory savings.

    view the source

    view the javadoc

CRC

DPoint

ErrorLog

    ErrorLog is a simple way of handling warnings and errors in your programs.

    Rather than having 20 lines of error handling for each occurance of an error, you can have just one. When the time comes to handle your errors a different way, you don't have to find a thousand error locations and rewrite the handling: just change the ErrorLog initialization.

    view the source

    view the javadoc

Files

    Contains a collection of static methods related to files. Includes:

      File to array and array to file shortcuts.

      Methods to get directory listings with angle brackets around subdirectories and date/time/filesize information for files.

      Shortcut methods for writing an object to a file and reading an object from a file.

    view the source

    view the javadoc

GDate

    Gregorian Date - stored as Year, Month and Day. Not very memory efficient, but good for converting to strings, or quickly extracting the day of the month.

    See the complimentary class JDate for memory efficiency or doing date math.

    view the source

    view the javadoc

GUI

HTTP

    This class simplifies the exchange of objects with Servlets via the HTTP protocol.

    This class is usually used by Applets, but it can also be used by applications and other servlets.

    view the source

    view the javadoc

IPoint

IRect

JDate

    Date is tracked as an integer. Fast, small and excellent for date math.

    This class will behave as both a Julian date and a Gregorian date although the actual date will be stored as a single integer.

    view the source

    view the javadoc

LogServlet

    Used for tracking events in a Servlet.

    Log messages are sent to a logging object that defaults to being turned off. Activating the servlet via a web browser gives you access to activate logging for debugging purposes.

    I use this for all of my servlets now.

    view the source

    view the javadoc

Numbers

ObjectServlet

Servlets

    This class simplifies the exchange of objects between clients and Servlets via the HTTP protocol.

    The server-side methods in this class interact with the client-side methods in com.javaranch.common.HTTP.

    view the source

    view the javadoc

Str

    A robust string processing class.

    The Java String and StringBuffer classes are final. So it is not possible to inherit all of the functionality of one of those classes and enhance it with a few more methods.

    This class attempts to provide all of the functionality found in both String and StringBuffer, plus provide a wide collection of additional functionality.

    view the source

    view the javadoc

Structures

TextFileIn

    Since TextFileIn extends BufferedReader and adds nothing more than a convenient constructor, all other member functions are identical to BufferedReader.

    view the source

    view the javadoc

TextFileOut

Time

UnitTest



Home | | Saloon | | Round Up | | Cattle Drive | | Bunkhouse | | Campfire | | Code Barn | | Coop | | Gramps | | Granny