Java-SDSU: SDSU specific Java library

SDSU Java library

San Diego State University Java Library, parts © 1996 Andrew Scherpbier andrew@sdsu.edu, Roger Whitneywhitney@cs.sdsu.edu, Gary Cornell and Cay S. Horstmann.
Please see the file COPYING for license information.

This library contains several Java classes which can be useful in many areas. They include:

sdsu.CGI
This class, when used in conjunction with the jcgi program, allows one to build a CGI program in java.
sdsu.FormatString
The FormatString class implements some of the functionality of sprintf() that is missing from the standard Java library. It has only static methods called "format" that return a String. Since Java doesn't allow for a variable number of arguments to a method, the methods are restricted to doing only one formatting operation at the time. All the sprintf() formatting operations are supported like: %s, %d, %x, %X, %o, %g, and %f
Most of the modifiers are also supported: %5s, %-5s, %02d, etc. Only the floating point formatting still needs work.

sdsu.io.ASCIIInputStream
This class is an InputStream which deals with ASCII input. As opposed to DataInputStream, the ASCIIInputStream is used to interpret ASCII representations of data. So whereas the DataInputStream can read 4 bytes and convert it into an integer, ASCIIInputStream will read ASCII numbers and convert them into an integer. It basically emulates scanf() from the standard C library although it is not as flexible.

sdsu.io. Console
This class provides simple methods for reading from the stantard input and writing to the standard output. Input is done via statements like Console.readInt() and Console.readInt( "Prompt string" ). No exceptions are thrown on input errors. Modeled after similar class in Core Java by Gary Cornell and Cay S. Horstmann.

sdsu.io. Format
A class for formatting numbers that follows printf conventions. Also implements C-like atoi and atof functions. This class is from Core Java by Gary Cornell and Cay S. Horstmann

In addition to these, the MsqlJava library has also been included. This library resides in the msql package.


Package Index

Applet API Packages

  • package sdsu
  • package sdsu.io
  • package msql

  • The sources for this library are also available:

  • gzipped tar file
  • ZIP file


  • Roger Whitney <whitney@cs.sdsu.edu>
    Last modified: August 12, 1996