Header { public int getDataType() { return headerParser.getInt(EnviConstants.HEADER_KEY_DATA_TYPE); } Header(final BufferedReader reader); ByteOrder getJavaByteOrder(); String getFileType(); int getNumSamples(); int getNumLines(); int getNumBands(); int getHeaderOffset(); int getDataType(); String getInterleave(); String getSensorType(); int getByteOrder(); EnviMapInfo getMapInfo(); EnviProjectionInfo getProjectionInfo(); String[] getBandNames(); String getDescription(); BeamProperties getBeamProperties(); String[] getWavelengths(); String[] getFWHM(); String getWavelengthsUnit(); double[] getDataOffsetValues(); double[] getDataGainValues(); Double getDataIgnoreValue(); int getNumClasses(); String[] getClassNmaes(); int[] getClassColorRGB(); static Properties loadProperties(String text); MetadataElement getAsMetadata();  }
@Test public void testParseDataType() throws IOException { final int dataType = 5; final String line = "data type = " + dataType + "\n"; final BufferedReader in = createReader(createMandatoryHeader() + line); final Header header = new Header(in); assertEquals(dataType, header.getDataType()); }