MDLV2000Reader extends DefaultChemObjectReader { static String dataHeader(final String line) { if (line.length() > 2 && line.charAt(0) != '>' && line.charAt(1) != ' ') return null; int i = line.indexOf('<', 2); if (i < 0) return null; int j = line.indexOf('>', i); if (j < 0) return null; return line.substring(i + 1, j); } MDLV2000Reader();  MDLV2000Reader(InputStream in);  MDLV2000Reader(InputStream in, Mode mode);  MDLV2000Reader(Reader in);  MDLV2000Reader(Reader in, Mode mode); @Override IResourceFormat getFormat(); @Override void setReader(Reader input); @Override void setReader(InputStream input); @SuppressWarnings("unchecked") @Override boolean accepts(Class<? extends IChemObject> classObject); @SuppressWarnings("unchecked") @Override T read(T object); @Override void close(); void customizeJob();  }
@Test public void dataHeader_1() { assertThat(MDLV2000Reader.dataHeader("> 29 <DENSITY> "), is("DENSITY")); }
@Test public void dataHeader_2() { assertThat(MDLV2000Reader.dataHeader("> <MELTING.POINT> "), is("MELTING.POINT")); }
@Test public void dataHeader_3() { assertThat(MDLV2000Reader.dataHeader("> 55 (MD-08974) <BOILING.POINT> DT12"), is("BOILING.POINT")); }