Header { public String getFileType() { return headerParser.getString(EnviConstants.HEADER_KEY_FILE_TYPE, null); } 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 testParseFileType() throws IOException { final String type = "toms test type"; final String line = "file type = " + type + "\n"; final BufferedReader in = createReader(createMandatoryHeader() + line); final Header header = new Header(in); assertEquals(type, header.getFileType()); }