public final class EarthOrientationParametersFile extends Object
| Modifier and Type | Method and Description |
|---|---|
static EarthOrientationParameters |
downloadData()
Downloads the latest EOP file (EOP-v1.1.txt) from an AGI server and returns the contents of the file as
EarthOrientationParameters. |
static EarthOrientationParameters |
downloadData(EarthOrientationParametersReadOptions readOptions,
Proxy proxy)
Downloads the latest EOP file (EOP-v1.1.txt) from an AGI server and returns the contents of the file as
EarthOrientationParameters. |
static EarthOrientationParameters |
downloadData(Proxy proxy)
Downloads the latest EOP file (EOP-v1.1.txt) from an AGI server and returns the contents of the file as
EarthOrientationParameters. |
static String |
downloadRawData()
Downloads the latest EOP file (EOP-v1.1.txt) from an AGI server and returns the contents of the file as a string.
|
static String |
downloadRawData(Proxy proxy)
Downloads the latest EOP file (EOP-v1.1.txt) from an AGI server and returns the contents of the file as a string.
|
static EarthOrientationParameters |
readData(BufferedReader source)
Reads an EOP data file and returns a new
EarthOrientationParameters instance
initialized with the contents of the file. |
static EarthOrientationParameters |
readData(BufferedReader source,
EarthOrientationParametersReadOptions readOptions)
Reads an EOP data file and returns a new
EarthOrientationParameters instance
initialized with the contents of the file. |
static EarthOrientationParameters |
readData(String fileName)
Reads an EOP data file and returns a new
EarthOrientationParameters instance
initialized with the contents of the file. |
static EarthOrientationParameters |
readData(String fileName,
EarthOrientationParametersReadOptions readOptions)
Reads an EOP data file and returns a new
EarthOrientationParameters instance
initialized with the contents of the file. |
@Nonnull public static EarthOrientationParameters readData(@Nonnull String fileName)
EarthOrientationParameters instance
initialized with the contents of the file.fileName - The name of the file from which to read.EarthOrientationParameters initialized with the contents of the file.ArgumentNullException - Thrown when the fileName is null.InvalidDataException - Thrown when there is an error parsing the EOP data specified by the fileName.@Nonnull public static EarthOrientationParameters readData(@Nonnull String fileName, @Nullable EarthOrientationParametersReadOptions readOptions)
EarthOrientationParameters instance
initialized with the contents of the file.fileName - The name of the file from which to read.readOptions - Options for reading the file.EarthOrientationParameters initialized with the contents of the file.ArgumentNullException - Thrown when the fileName is null.InvalidDataException - Thrown when there is an error parsing the EOP data specified by the fileName.@Nonnull public static EarthOrientationParameters readData(@Nonnull BufferedReader source)
EarthOrientationParameters instance
initialized with the contents of the file.source - The stream from which to read.EarthOrientationParameters initialized with the contents of the file.ArgumentNullException - Thrown when the source is null.InvalidDataException - Thrown when there is an error parsing the EOP data specified by the source.@Nonnull public static EarthOrientationParameters readData(@Nonnull BufferedReader source, @Nullable EarthOrientationParametersReadOptions readOptions)
EarthOrientationParameters instance
initialized with the contents of the file.source - The stream from which to read.readOptions - Options for reading the file.EarthOrientationParameters initialized with the contents of the file.ArgumentNullException - Thrown when the source is null.InvalidDataException - Thrown when there is an error parsing the EOP data specified by the source.@Nonnull public static EarthOrientationParameters downloadData()
EarthOrientationParameters.
This method connects via HTTPS to ftp.agi.com.
Note that an internet connection is required to use this method successfully.
EarthOrientationParameters populated with the data returned from the server.InvalidDataException - Thrown when there is an error parsing the EOP data returned from the download.DataUnavailableException - Thrown when the data cannot be retrieved from the server.@Nonnull public static EarthOrientationParameters downloadData(@Nullable Proxy proxy)
EarthOrientationParameters.
This method connects via HTTPS to ftp.agi.com.
Note that an internet connection is required to use this method successfully.
proxy - Proxy to use when connecting.EarthOrientationParameters populated with the data returned from the server.InvalidDataException - Thrown when there is an error parsing the EOP data returned from the download.DataUnavailableException - Thrown when the data cannot be retrieved from the server.@Nonnull public static EarthOrientationParameters downloadData(EarthOrientationParametersReadOptions readOptions, @Nullable Proxy proxy)
EarthOrientationParameters.
This method connects via HTTPS to ftp.agi.com.
Note that an internet connection is required to use this method successfully.
readOptions - Options for reading the file.proxy - Proxy to use when connecting. Optional, default is null.EarthOrientationParameters populated with the data returned from the server.InvalidDataException - Thrown when there is an error parsing the EOP data returned from the download.DataUnavailableException - Thrown when the data cannot be retrieved from the server.@Nonnull public static String downloadRawData()
Note that an internet connection is required to use this method successfully.
DataUnavailableException - Thrown when the data cannot be retrieved from the server.@Nonnull public static String downloadRawData(@Nullable Proxy proxy)
Note that an internet connection is required to use this method successfully.
proxy - Proxy to use when connecting.DataUnavailableException - Thrown when the data cannot be retrieved from the server.