DaftIeUtils { public static DaftIeDocument createDocument(InputStream input) throws SAXException, IOException, ParserConfigurationException { return createDocument(XmlUtils.newDocument(input, true)); } private  DaftIeUtils(); static DaftIeDocument createDocument(InputStream input); static DaftIeDocument createDocument(File xmlFile); static DaftIeDocument createDocument(String xmlString); static DaftIeDocument createDocument(Document doc); @SuppressWarnings("unused") static Marshaller createMarshaller(); @SuppressWarnings("Duplicates") static Marshaller createMarshaller(String encoding, boolean formatted); static Unmarshaller createUnmarshaller(); synchronized static JAXBContext getContext(); static String getCountryName(String country); static DateFormat getDateFormat(); synchronized static ObjectFactory getFactory(); synchronized static void initContext(ClassLoader classloader); static Boolean parseBoolean(String value); static String parseCountry(String value); static Calendar parseDate(String value); static Calendar parseDateTime(String value); static BigDecimal parsePositiveDecimal(String value); static BigInteger parsePositiveInteger(String value); @SuppressWarnings("Duplicates") static URI parseURI(String value); static String printBoolean(Boolean value); static String printCountry(String value); static String printDate(Calendar value); static String printDateTime(Calendar value); static String printPositiveDecimal(BigDecimal value); static String printPositiveInteger(BigInteger value); static String printURI(URI value); @SuppressWarnings("unused")
    final static DaftIeVersion VERSION; @SuppressWarnings("unused")
    final static String NAMESPACE; @SuppressWarnings("unused")
    final static Locale DEFAULT_LOCALE; @SuppressWarnings("unused")
    final static String PACKAGE; @SuppressWarnings("unused")
    final static ObjectFactory FACTORY; }
@Test public void testCreateDocument() { String transferXml = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n" + "<daft version=\"" + DaftIeUtils.VERSION.toReadableVersion() + "\">\n" + " <overseas_sales>\n" + " </overseas_sales>\n" + "</daft>"; DaftIeDocument doc; try { doc = DaftIeUtils.createDocument(transferXml); Assert.assertNotNull( "Transfer was processed.", doc); Assert.assertTrue("Transfer was processed as TransferDocument.", doc instanceof DaftIeDocument); } catch (Exception ex) { LOGGER.error("Test of DaftIeUtils.createDocument failed!"); LOGGER.error("> " + ex.getLocalizedMessage(), ex); Assert.fail("Test of DaftIeUtils.createDocument failed!"); } }