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