final class TestParser extends Object implements RecordParser
This class uses the following ad hoc format for each line of test data:
Byte 1..2: RA-H Byte 3 space Byte 4..5: RA-M Byte 6 space Byte 7..8: RA-S, no fraction Byte 9 space Byte 10..12: Deg, with leading minus sign Byte 13 space Byte 14..15: Deg-min Byte 16 space Byte 17..18: Deg-sec, no fraction Byte 19 space Byte 20..24: Magnitude; example: '-6.70' Byte 25 space Byte 26: Spectral Type
Comments: any lines starting with '-' are ignored. This lets you insert comment lines directly in the data, if desired.
Constructor and Description |
---|
TestParser() |
TestParser()
public Star parse(String aLine)
parse
in interface RecordParser
Starfield - Copyright Hirondelle Systems. Published March 1, 2014