[go: up one dir, main page]

Menu

[r39]: / cellbase / CellFinal.java  Maximize  Restore  History

Download this file

34 lines (33 with data), 734 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package cellbase;
final public class CellFinal extends CellReader
{
CellBase boot(String fileName)
{
return new CellFinal(fileName);
}
void writeRow(short row, Object[] r)
{
String s = "";
for (int i=0;i< r.length;i++)
{
String n = r[i] +"";
n = n.replace(',', '.');
s = s + "," + n;
}
while (s.length() < RECORD) s = " " + s;
buffer(row, s.toCharArray(), "W");
}
public void so(byte col, short row, Object val)
{
super.so(col, row, val);
if (!loaded) return;
Object[] r = new Object[ramCols(row)];
for (byte i = 0; i< r.length; i++) r[i] = go(i, row);
r[col] = val;
writeRow(row, r);
}
public CellFinal(String fileName)
{
super(fileName);
}
}