public class RinexClockParser extends Object
It is able to manage some mistakes in file writing and format compliance such as wrong date format, misplaced header blocks or missing information.
A time system should be specified in the file. However, if it is not, default time system will be chosen regarding the satellite system. If it is mixed or not specified, default time system will be UTC.
Caution, files with missing information in header can lead to wrong data dates and station positions. It is advised to check the correctness and format compliance of the clock file to be parsed.
Constructor and Description |
---|
RinexClockParser()
Create an clock file parser using default values.
|
RinexClockParser(Function<? super String,? extends Frame> frameBuilder)
Create a clock file parser and specify the frame builder.
|
RinexClockParser(Function<? super String,? extends Frame> frameBuilder,
TimeScales timeScales)
Constructor, build the IGS clock file parser.
|
Modifier and Type | Method and Description |
---|---|
RinexClock |
parse(BufferedReader reader,
String fileName)
Parse an IGS clock file from a stream.
|
RinexClock |
parse(InputStream stream)
Parse an IGS clock file from an input stream using the UTF-8 charset.
|
RinexClock |
parse(String fileName)
Parse an IGS clock file from a file on the local file system.
|
@DefaultDataContext public RinexClockParser()
This constructor uses the default data context
.
RinexClockParser(Function)
@DefaultDataContext public RinexClockParser(Function<? super String,? extends Frame> frameBuilder)
This constructor uses the default data context
.
frameBuilder
- is a function that can construct a frame from a clock file
coordinate system string. The coordinate system can be
any 5 character string e.g. ITR92, IGb08.RinexClockParser(Function, TimeScales)
public RinexClockParser(Function<? super String,? extends Frame> frameBuilder, TimeScales timeScales)
frameBuilder
- is a function that can construct a frame from a clock file
coordinate system string. The coordinate system can be
any 5 character string e.g. ITR92, IGb08.timeScales
- the set of time scales used for parsing dates.public RinexClock parse(InputStream stream) throws IOException
This method creates a BufferedReader
from the stream and as such this
method may read more data than necessary from stream
and the additional
data will be lost. The other parse methods do not have this issue.
stream
- to read the IGS clock file fromIOException
- if stream
throws oneparse(String)
,
parse(BufferedReader, String)
public RinexClock parse(String fileName) throws IOException
fileName
- file nameIOException
- if one is thrown while opening or reading from fileName
parse(InputStream)
,
parse(BufferedReader, String)
public RinexClock parse(BufferedReader reader, String fileName) throws IOException
reader
- containing the clock filefileName
- file nameIOException
- if reader
throws oneparse(InputStream)
,
parse(String)
Copyright © 2002-2021 CS GROUP. All rights reserved.