Modifier and Type | Field and Description |
---|---|
protected char[] |
data |
protected String |
originalAddress |
Constructor and Description |
---|
CharMem(File f) |
CharMem(String name,
File f) |
CharMem(String name,
String s) |
Modifier and Type | Method and Description |
---|---|
void |
append(String s)
append the given string to the character data.
|
void |
dump()
printa all character data to System.out
|
void |
dump(PrintStream p)
printa all character data to the printStream.
OBSOLETE ??? should be "printWriter" ????? |
char[] |
get_data() |
String |
get_originalAddress()
returns the string stored as origninalAdress.
|
protected void |
initData(File f)
Reads the file into the memory and sets the canonical file name as
the "original address" of the charMem.
The
LineNumberReader is required NOT for counting lines, but
for substituting "\\n", "\\r" and "\\r\\n" (as used by "operating systems")
all by a simple "\\n", which
is the format recognized by MemScanner . |
protected void |
initData(String s) |
protected String originalAddress
protected char[] data
public CharMem(File f) throws IOException
IOException
public String get_originalAddress()
public char[] get_data()
protected void initData(File f)
LineNumberReader
is required NOT for counting lines, but
for substituting "\\n", "\\r" and "\\r\\n" (as used by "operating systems")
all by a simple "\\n", which
is the format recognized by MemScanner
.public void append(String s)
protected void initData(String s)
public void dump(PrintStream p)
public void dump()
see also the complete user documentation .