dmolony-DiskBrowser/src/com/bytezone/diskbrowser/appleworks/CellAddress.java

27 lines
949 B
Java

package com.bytezone.diskbrowser.appleworks;
import com.bytezone.diskbrowser.utilities.Utility;
// -----------------------------------------------------------------------------------//
class CellAddress
// -----------------------------------------------------------------------------------//
{
int colRef;
int rowRef;
// ---------------------------------------------------------------------------------//
CellAddress (byte[] buffer, int offset)
// ---------------------------------------------------------------------------------//
{
colRef = buffer[offset];
rowRef = Utility.intValue (buffer[offset + 1], buffer[offset + 2]);
}
// ---------------------------------------------------------------------------------//
@Override
public String toString ()
// ---------------------------------------------------------------------------------//
{
return String.format ("[Row=%04d, Col=%04d]", rowRef, colRef);
}
}