C G L M P R S T

C

cformat - package cformat
 
clearLookAheadChar() - Method in class cformat.ScanfReader
Clears the look-ahead character.
close() - Method in class cformat.ScanfReader
Closes the stream.

G

getCharNumber() - Method in class cformat.ScanfReader
Gets the current character number (equal to the number of characters that have been consumed by the stream).
getCommentChar() - Method in class cformat.ScanfReader
Gets the comment character.
getLineNumber() - Method in class cformat.ScanfReader
Gets the current line number.
getLookAheadChar() - Method in class cformat.ScanfReader
Returns the look-ahead character.
getPrefix() - Method in class cformat.PrintfFormat
Gets the prefix string associated with the format.
getSuffix() - Method in class cformat.PrintfFormat
Gets the suffix string associated with the format.

L

lookAheadCharValid() - Method in class cformat.ScanfReader
Returns whether or not a look-ahead character is currently begin stored.

M

main(String[]) - Static method in class cformat.ScanfReaderTest
Tests the class ScanfReader.
main(String[]) - Static method in class cformat.ScanfFormatTest
Tests the class ScanfFormat.
main(String[]) - Static method in class cformat.PrintfFormatTest
Tests the class PrintfFormat.

P

printf(PrintfFormat, char) - Method in class cformat.PrintfWriter
Prints a char in accordance with the supplied PrintfFormat object.
printf(PrintfFormat, char) - Method in class cformat.PrintfStream
Prints a char in accordance with the supplied PrintfFormat object.
printf(PrintfFormat, double) - Method in class cformat.PrintfWriter
Prints a double in accordance with the supplied PrintfFormat object.
printf(PrintfFormat, double) - Method in class cformat.PrintfStream
Prints a double in accordance with the supplied PrintfFormat object.
printf(PrintfFormat, float) - Method in class cformat.PrintfWriter
Prints a float in accordance with the supplied PrintfFormat object.
printf(PrintfFormat, float) - Method in class cformat.PrintfStream
Prints a float in accordance with the supplied PrintfFormat object.
printf(PrintfFormat, int) - Method in class cformat.PrintfWriter
Prints an int in accordance with the supplied PrintfFormat object.
printf(PrintfFormat, int) - Method in class cformat.PrintfStream
Prints an int in accordance with the supplied PrintfFormat object.
printf(PrintfFormat, long) - Method in class cformat.PrintfWriter
Prints a long in accordance with the supplied PrintfFormat object.
printf(PrintfFormat, long) - Method in class cformat.PrintfStream
Prints a long in accordance with the supplied PrintfFormat object.
printf(PrintfFormat, String) - Method in class cformat.PrintfWriter
Prints a String in accordance with the supplied PrintfFormat object.
printf(PrintfFormat, String) - Method in class cformat.PrintfStream
Prints a String in accordance with the supplied PrintfFormat object.
printf(String, char) - Method in class cformat.PrintfWriter
Prints a char in accordance with the supplied format string.
printf(String, char) - Method in class cformat.PrintfStream
Prints a char in accordance with the supplied format string.
printf(String, double) - Method in class cformat.PrintfWriter
Prints a double in accordance with the supplied format string.
printf(String, double) - Method in class cformat.PrintfStream
Prints a double in accordance with the supplied format string.
printf(String, float) - Method in class cformat.PrintfWriter
Prints a float in accordance with the supplied format string.
printf(String, float) - Method in class cformat.PrintfStream
Prints a float in accordance with the supplied format string.
printf(String, int) - Method in class cformat.PrintfWriter
Prints an int in accordance with the supplied format string.
printf(String, int) - Method in class cformat.PrintfStream
Prints an int in accordance with the supplied format string.
printf(String, long) - Method in class cformat.PrintfWriter
Prints a long in accordance with the supplied format string.
printf(String, long) - Method in class cformat.PrintfStream
Prints a long in accordance with the supplied format string.
printf(String, String) - Method in class cformat.PrintfWriter
Prints a String in accordance with the supplied format string.
printf(String, String) - Method in class cformat.PrintfStream
Prints a String in accordance with the supplied format string.
PrintfFormat - class cformat.PrintfFormat.
Object for formatting output in the same way as the C printf function.
PrintfFormat(String) - Constructor for class cformat.PrintfFormat
Creates a new instance of PrintfFormat from the supplied format string.
PrintfFormatTest - class cformat.PrintfFormatTest.
Testing class for PrintfFormat.
PrintfFormatTest() - Constructor for class cformat.PrintfFormatTest
 
PrintfStream - class cformat.PrintfStream.
PrintStream which outputs primitive types using C printf style formatting.
PrintfStream(OutputStream) - Constructor for class cformat.PrintfStream
Creates a PrintfStream, without automatic line flushing, from an existing OutputStream.
PrintfStream(OutputStream, boolean) - Constructor for class cformat.PrintfStream
Creates a PrintfStream from an existing OutputStream.
PrintfWriter - class cformat.PrintfWriter.
Writer class to output primitive types using C printf style formatting.
PrintfWriter(OutputStream) - Constructor for class cformat.PrintfWriter
Creates a PrintfWriter, without automatic line flushing, from an existing OutputStream.
PrintfWriter(OutputStream, boolean) - Constructor for class cformat.PrintfWriter
Creates a PrintfWriter from an existing OutputStream.
PrintfWriter(Writer) - Constructor for class cformat.PrintfWriter
Creates a PrintfWriter, without automatic line flushing, from an existing Writer.
PrintfWriter(Writer, boolean) - Constructor for class cformat.PrintfWriter
Creates a PrintfWriter from an existing Writer.

R

read(char[], int, int) - Method in class cformat.ScanfReader
Reads characters into a portion of a character array.

S

scanBoolean() - Method in class cformat.ScanfReader
Scan and return a boolean, using the default format string "%b".
scanBoolean(ScanfFormat) - Method in class cformat.ScanfReader
Scan and return a boolean, using a pre-allocated ScanfFormat object.
scanBoolean(String) - Method in class cformat.ScanfReader
Scan and return a boolean.
scanChar() - Method in class cformat.ScanfReader
Scan and return a single character, using the default format string "%c".
scanChar(ScanfFormat) - Method in class cformat.ScanfReader
Scan and return a single character, using a pre-allocated ScanfFormat object.
scanChar(String) - Method in class cformat.ScanfReader
Scan and return a single character.
scanChars(int) - Method in class cformat.ScanfReader
Scan and return a character array, using the default format string "%c", with the field width (number of characters to read) supplanted by the argument n.
scanChars(ScanfFormat) - Method in class cformat.ScanfReader
Scan and return a character array, using a pre-allocated ScanfFormat object.
scanChars(String) - Method in class cformat.ScanfReader
Scan and return a character array, whose size is determined by the field width specified in the format string (with a default width of 1 being assumed if no width is specified).
scanDec() - Method in class cformat.ScanfReader
Scan and return a signed decimal (long) integer, using the default format string "%d".
scanDec(ScanfFormat) - Method in class cformat.ScanfReader
Scan and return a signed decimal (long) integer, using a pre-allocated ScanfFormat object.
scanDec(String) - Method in class cformat.ScanfReader
Scan and return a signed decimal (long) integer.
scanDouble() - Method in class cformat.ScanfReader
Scan and return a double, using the default format string "%f".
scanDouble(ScanfFormat) - Method in class cformat.ScanfReader
Scan and return a double, using a pre-allocated ScanfFormat object.
scanDouble(String) - Method in class cformat.ScanfReader
Scan and return a double.
ScanfFormat - class cformat.ScanfFormat.
Format object for scanning input in the same way as the C scanf function.
ScanfFormat(String) - Constructor for class cformat.ScanfFormat
Constructs a ScanfFormat class from a format string.
ScanfFormatTest - class cformat.ScanfFormatTest.
Testing class for ScanfFormat.
ScanfFormatTest() - Constructor for class cformat.ScanfFormatTest
 
scanFloat() - Method in class cformat.ScanfReader
Scan and return a float, using the default format string "%f".
scanFloat(ScanfFormat) - Method in class cformat.ScanfReader
Scan and return a float, using a pre-allocated ScanfFormat object.
scanFloat(String) - Method in class cformat.ScanfReader
Scan and return a float.
ScanfMatchException - exception cformat.ScanfMatchException.
Exception class used by the scan methods within ScanfReader when the input does not match the specified format.
ScanfMatchException(String) - Constructor for class cformat.ScanfMatchException
Creates a new ScanfMatchException with the given message.
ScanfReader - class cformat.ScanfReader.
A Reader which implements C scanf functionality.
ScanfReader(Reader) - Constructor for class cformat.ScanfReader
Create a new ScanfReader from the given reader.
ScanfReaderTest - class cformat.ScanfReaderTest.
Testing class for ScanfReader.
scanHex() - Method in class cformat.ScanfReader
Scan and return a hex (long) integer, using the default format string "%x".
scanHex(ScanfFormat) - Method in class cformat.ScanfReader
Scan and return a hex (long) integer, using a pre-allocated ScanfFormat object.
scanHex(String) - Method in class cformat.ScanfReader
Scan and return a hex (long) integer.
scanInt() - Method in class cformat.ScanfReader
Scan and return a signed integer, using the default format string "%i".
scanInt(ScanfFormat) - Method in class cformat.ScanfReader
Scan and return a signed integer, using a pre-allocated ScanfFormat object.
scanInt(String) - Method in class cformat.ScanfReader
Scan and return a signed integer.
scanLong() - Method in class cformat.ScanfReader
Scan and return a signed (long) integer, using the default format string "%i".
scanLong(ScanfFormat) - Method in class cformat.ScanfReader
Scan and return a signed (long) integer, using a pre-allocated ScanfFormat object.
scanLong(String) - Method in class cformat.ScanfReader
Scan and return a signed (long) integer.
scanOct() - Method in class cformat.ScanfReader
Scan and return an octal (long) integer, using the default format string "%o".
scanOct(ScanfFormat) - Method in class cformat.ScanfReader
Scan and return an octal (long) integer, using a pre-allocated ScanfFormat object.
scanOct(String) - Method in class cformat.ScanfReader
Scan and return an octal (long) integer.
scanString() - Method in class cformat.ScanfReader
Scan and return a String, using the default format string "%s".
scanString(ScanfFormat) - Method in class cformat.ScanfReader
Scan and return a String, using a pre-allocated ScanfFormat object.
scanString(String) - Method in class cformat.ScanfReader
Scan and return a String.
set(String) - Method in class cformat.ScanfFormat
Sets the contents of the object according to the information provided in the format string.
set(String) - Method in class cformat.PrintfFormat
Sets the format characteristics according to the supplied String.
setCharNumber(int) - Method in class cformat.ScanfReader
Sets the current character number.
setCommentChar(int) - Method in class cformat.ScanfReader
Sets the comment character.
setLineNumber(int) - Method in class cformat.ScanfReader
Sets the current line number.
setPrefix(String) - Method in class cformat.PrintfFormat
Sets the prefix string associated with the format.
setSuffix(String) - Method in class cformat.PrintfFormat
Sets the suffix string associated with the format.

T

tostr(char) - Method in class cformat.PrintfFormat
Formats a char into a string.
tostr(double) - Method in class cformat.PrintfFormat
Formats a double into a string.
tostr(float) - Method in class cformat.PrintfFormat
Formats a float into a string.
tostr(GVector) - Method in class cformat.PrintfFormat
Formats a GVector into a string.
tostr(int) - Method in class cformat.PrintfFormat
Formats an int into a string.
tostr(long) - Method in class cformat.PrintfFormat
Formats a long into a string.
tostr(String) - Method in class cformat.PrintfFormat
Formats a String into a string.

C G L M P R S T