mirror of
https://github.com/dmolony/DiskBrowser.git
synced 2024-06-15 19:29:45 +00:00
21 lines
434 B
Java
21 lines
434 B
Java
|
package com.bytezone.diskbrowser.appleworks;
|
||
|
|
||
|
import com.bytezone.diskbrowser.HexFormatter;
|
||
|
|
||
|
public class CellAddress
|
||
|
{
|
||
|
int colRef;
|
||
|
int rowRef;
|
||
|
|
||
|
public CellAddress (byte[] buffer, int offset)
|
||
|
{
|
||
|
colRef = buffer[offset];
|
||
|
rowRef = HexFormatter.getSignedWord (buffer[offset + 1], buffer[offset + 2]);
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public String toString ()
|
||
|
{
|
||
|
return String.format ("[Row=%04d, Col=%04d]", rowRef, colRef);
|
||
|
}
|
||
|
}
|