public class ScanTest
extends java.lang.Object
Constructor and Description |
---|
ScanTest() |
Modifier and Type | Method and Description |
---|---|
static void |
scanFromString(Scannable s,
java.lang.Object ref,
java.lang.String str)
Reads a Scannable from a string using its scan method.
|
static void |
testWriteAndScan(Scannable s,
java.lang.Object ref,
java.lang.String fmtStr)
Tests the scan and write methods of an object by writing the object,
scanning it, writing it again, and making sure that the second write
output equals the first.
|
static Scannable |
testWriteAndScanWithClass(Scannable s,
java.lang.Object ref,
java.lang.String fmtStr)
Tests the scan and write methods of an object by writing the object,
preceded by its class name, and then using this to scan a new instance of
the object.
|
static java.lang.String |
writeToString(Scannable s,
java.lang.String fmtStr,
java.lang.Object ref)
Writes a Scannable to a string using its write method and returns the
string.
|
public static void testWriteAndScan(Scannable s, java.lang.Object ref, java.lang.String fmtStr)
public static Scannable testWriteAndScanWithClass(Scannable s, java.lang.Object ref, java.lang.String fmtStr)
public static java.lang.String writeToString(Scannable s, java.lang.String fmtStr, java.lang.Object ref)
public static void scanFromString(Scannable s, java.lang.Object ref, java.lang.String str)