dmolony-DiskBrowser/src/com/bytezone/diskbrowser/appleworks/CellAddress.java
Denis Molony 62c09af14f consolidated some of the getWord() type routines in Utility, also allow
user to save the current file buffer to the local file system.
2021-05-19 18:13:17 +10:00

27 lines
929 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.getShort (buffer, offset + 1);
}
// ---------------------------------------------------------------------------------//
@Override
public String toString ()
// ---------------------------------------------------------------------------------//
{
return String.format ("[Row=%04d, Col=%04d]", rowRef, colRef);
}
}