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

Quick Search    Search Deep

cformat: Javadoc index of package cformat.


Package Samples:

cformat

Classes:

ScanfReader: A Reader which implements C scanf functionality. Once created, an application can read various primitive types from the underlying stream using various scan methods that implement scanf type input formatting. There are scan methods to read float, double, long, int, char, char[], and String. The methods take as an argument either a format string, a pre-allocated ScanfFormat object which is created from a format string, or no argument (implying a default format). The format string is modeled after that accepted by the C scanf() methodName, and is described in the documentation for the class ScanfFormat ...
PrintfFormat: Object for formatting output in the same way as the C printf methodName. A printf style format string is specified in the constructor. Once instantiated, the tostr methods of this class may be used to convert primitives types (float, double, char, int, long, String) into Strings. Alternatively, instances of this class may be passed as arguments to the printf methods of the PrintfWriter or PrintfStream classes. Examples: double theta1 = 45.0; double theta2 = 85.0; PrintfFormat fmt = new PrintfFormat ("%7.2f\n"); System.out.println ("theta1=" + fmt.tostr(theta1) + "theta2=" + fmt.tostr(theta2)); ...
PrintfStream: PrintStream which outputs primitive types using C printf style formatting. For each primitive type (float, double, char, int, long, String), there is a printf method which takes (as a first argument) either a printf style format string, or a PrintfFormat object. Using the latter can be more efficient because it permits an application to prorate the overhead of parsing a format string. Because Java does not permit variable numbers of arguments, each printf methodName accepts only one primitive type, and the format can correspondingly contain only one conversion sequence.
PrintfWriter: Writer class to output primitive types using C printf style formatting. For each primitive type (float, double, char, int, long, String), there is a printf method which takes (as a first argument) either a printf style format string, or a PrintfFormat object. Using the latter can be more efficient because it permits an application to prorate the overhead of parsing a format string. Because Java does not permit variable numbers of arguments, each printf methodName accepts only one primitive type, and the formats can correspondingly contain only one conversion sequence.
ScanfFormat: Format object for scanning input in the same way as the C scanf methodName. A scanf style format string is specified in the constructor. Once instantiated, objects of this class may be passed as arguments to the scan methods of the ScanfReader class.
ScanfMatchException: Exception class used by the scan methods within ScanfReader when the input does not match the specified format.
PrintfFormatTest: Testing class for PrintfFormat. Run the main method to test the class.
ScanfFormatTest: Testing class for ScanfFormat. Run the main method to test the class.
ScanfReaderTest: Testing class for ScanfReader. Run the main method to test the class.

Home | Contact Us | Privacy Policy | Terms of Service