class SPPDecoder implements MALDecoder {

	@Override
	public Time decodeTime() throws MALException {
		CCSDSTime tf = getTimeFormatter();
		byte[] tField = read(tf.getDataLength());
		AbsoluteDate time = tf.getDecodedTime(tField);
		// PENDING: Epoch for Time in MAL Java API unclear. Here: Use Java epoch.
		// Construct our own Java epoch due to bug in Orekit library (https://www.orekit.org/forge/issues/142).
		AbsoluteDate epoch = CCSDSTime.createEpoch(Configuration.JAVA_EPOCH, Configuration.JAVA_EPOCH_TIMESCALE);
		double seconds = time.durationFrom(epoch);
		return new Time(Math.round(seconds * 1000));
	}

	public  SPPDecoder(final InputStream inputStream, final Map properties);

}