@Test public void testReadEn() throws IllegalCeosFormatException, IOException { _ios.writeBytes(" 1.782000000000000E+04"); _ios.seek(0); final CeosFileReader ceosReader = new CeosFileReader(_ios); assertEquals(17820, ceosReader.readEn(22), 1E-6); }
public double readEn(final int n) throws IOException, IllegalCeosFormatException { final long streamPosition = stream.getStreamPosition(); try { return readFn(n); } catch (IllegalCeosFormatException e) { final String message = String.format(CeosFileReader.EM_READING_X_TYPE, "En"); throw new IllegalCeosFormatException(message, streamPosition, e); } }
CeosFileReader { public double readEn(final int n) throws IOException, IllegalCeosFormatException { final long streamPosition = stream.getStreamPosition(); try { return readFn(n); } catch (IllegalCeosFormatException e) { final String message = String.format(CeosFileReader.EM_READING_X_TYPE, "En"); throw new IllegalCeosFormatException(message, streamPosition, e); } } }
CeosFileReader { public double readEn(final int n) throws IOException, IllegalCeosFormatException { final long streamPosition = stream.getStreamPosition(); try { return readFn(n); } catch (IllegalCeosFormatException e) { final String message = String.format(CeosFileReader.EM_READING_X_TYPE, "En"); throw new IllegalCeosFormatException(message, streamPosition, e); } } CeosFileReader(final ImageInputStream stream); }
CeosFileReader { public double readEn(final int n) throws IOException, IllegalCeosFormatException { final long streamPosition = stream.getStreamPosition(); try { return readFn(n); } catch (IllegalCeosFormatException e) { final String message = String.format(CeosFileReader.EM_READING_X_TYPE, "En"); throw new IllegalCeosFormatException(message, streamPosition, e); } } CeosFileReader(final ImageInputStream stream); void close(); void seek(final long pos); void skipBytes(final long numBytes); int readB1(); short readB2(); int readB4(); long readB8(); void readB4(final int[] array); void readB8(final long[] array); int readI4(); long readIn(final int n); void readB1(final byte[] array); double readFn(final int n); double readEn(final int n); double readGn(final int n); void readGn(final int n, final double[] numbers); String readAn(final int n); int[] readInArray(final int arraySize, final int intValLength); long getCurrentPos(); }
CeosFileReader { public double readEn(final int n) throws IOException, IllegalCeosFormatException { final long streamPosition = stream.getStreamPosition(); try { return readFn(n); } catch (IllegalCeosFormatException e) { final String message = String.format(CeosFileReader.EM_READING_X_TYPE, "En"); throw new IllegalCeosFormatException(message, streamPosition, e); } } CeosFileReader(final ImageInputStream stream); void close(); void seek(final long pos); void skipBytes(final long numBytes); int readB1(); short readB2(); int readB4(); long readB8(); void readB4(final int[] array); void readB8(final long[] array); int readI4(); long readIn(final int n); void readB1(final byte[] array); double readFn(final int n); double readEn(final int n); double readGn(final int n); void readGn(final int n, final double[] numbers); String readAn(final int n); int[] readInArray(final int arraySize, final int intValLength); long getCurrentPos();  }