jezuch.utils.starmapper2
Interface StarsPlaReader

All Known Implementing Classes:
StarsMap.DefaultStarsPlaReader

public interface StarsPlaReader

This is an interface for readers that read or generate PlanetInfos. The source of these information are up to implementation. StarmapperLib includes a default implementation: StarsMap.DefaultStarsPlaReader that read original reports generated by Stars!.

Since:
2.0
Version:
2.0
Author:
Krzysztof Sobolewski
See Also:
StarsMap.DefaultStarsPlaReader, PlanetInfo

Method Summary
 void close()
          Close this reader - this usually just closes underlying input stream.
 PlanetInfo readPlanetInfo()
          Generate or read next PlanetInfo.
 

Method Detail

close

public void close()
           throws java.io.IOException
Close this reader - this usually just closes underlying input stream.

Throws:
java.io.IOException - if a general I/O error occurs

readPlanetInfo

public PlanetInfo readPlanetInfo()
                          throws java.io.IOException,
                                 java.text.ParseException
Generate or read next PlanetInfo.

Returns:
next PlanetInfo from this reader
Throws:
java.io.IOException - if a general I/O error occurs
java.text.ParseException - if data source (if any) of that reader is invalid