CDAR2Parser implements Parser<POCDMT000040ClinicalDocument> { public POCDMT000040ClinicalDocument parse(String s, Object... options) { try { return parse(new ByteArrayInputStream(s.getBytes()), options); } catch (IOException e) { throw new ParseException(e); } }  POCDMT000040ClinicalDocument parse(String s, Object... options); POCDMT000040ClinicalDocument parse(InputStream is, Object... options); POCDMT000040ClinicalDocument parse(Source source, Object... options); POCDMT000040ClinicalDocument parse(Reader reader, Object... options);  }
@Test public void testParseSampleDocument() throws IOException { InputStream is = getClass().getResourceAsStream( "/builders/content/document/SampleCDADocument.xml"); POCDMT000040ClinicalDocument clinicalDocument = parser.parse(is); Assert.assertNotNull(clinicalDocument); }
@Test public void testParseSampleCCDDocument() throws IOException { InputStream is = getClass().getResourceAsStream( "/builders/content/document/SampleCCDDocument.xml"); POCDMT000040ClinicalDocument clinicalDocument = parser.parse(is); Assert.assertNotNull(clinicalDocument); }