2015-06-01 09:35:51 +00:00
|
|
|
package com.bytezone.diskbrowser.appleworks;
|
|
|
|
|
2020-06-26 03:29:46 +00:00
|
|
|
import com.bytezone.diskbrowser.utilities.Utility;
|
2015-06-01 09:35:51 +00:00
|
|
|
|
2020-02-08 07:50:03 +00:00
|
|
|
// -----------------------------------------------------------------------------------//
|
|
|
|
class CellAddress
|
|
|
|
// -----------------------------------------------------------------------------------//
|
2015-06-01 09:35:51 +00:00
|
|
|
{
|
|
|
|
int colRef;
|
|
|
|
int rowRef;
|
|
|
|
|
2020-02-08 07:50:03 +00:00
|
|
|
// ---------------------------------------------------------------------------------//
|
|
|
|
CellAddress (byte[] buffer, int offset)
|
|
|
|
// ---------------------------------------------------------------------------------//
|
2015-06-01 09:35:51 +00:00
|
|
|
{
|
|
|
|
colRef = buffer[offset];
|
2021-05-19 08:13:17 +00:00
|
|
|
rowRef = Utility.getShort (buffer, offset + 1);
|
2015-06-01 09:35:51 +00:00
|
|
|
}
|
|
|
|
|
2020-02-08 07:50:03 +00:00
|
|
|
// ---------------------------------------------------------------------------------//
|
2015-06-01 09:35:51 +00:00
|
|
|
@Override
|
|
|
|
public String toString ()
|
2020-02-08 07:50:03 +00:00
|
|
|
// ---------------------------------------------------------------------------------//
|
2015-06-01 09:35:51 +00:00
|
|
|
{
|
|
|
|
return String.format ("[Row=%04d, Col=%04d]", rowRef, colRef);
|
|
|
|
}
|
|
|
|
}
|