List of usage examples for javax.xml.transform TransformerFactoryConfigurationError getMessage
public String getMessage()
From source file:eu.europa.ec.markt.tlmanager.core.signature.SignatureManager.java
/** * Initialises the <code>InMemoryDocument</code> from a provided <code>Document</code>. *///from w ww. j ava 2 s . c o m public void initInMemoryDocument(org.w3c.dom.Document document) { if (document == null) { LOG.log(Level.SEVERE, ">>> Document is null!"); } try { ByteArrayOutputStream outputDoc = new ByteArrayOutputStream(); Result output = new StreamResult(outputDoc); Transformer transformer = Util.createPrettyTransformer(3); Source source = new DOMSource(document); transformer.transform(source, output); this.document = new InMemoryDocument(outputDoc.toByteArray()); outputDoc.close(); } catch (TransformerConfigurationException tce) { LOG.log(Level.SEVERE, ">>>" + tce.getMessage()); } catch (TransformerFactoryConfigurationError tfce) { LOG.log(Level.SEVERE, ">>>" + tfce.getMessage()); } catch (TransformerException te) { LOG.log(Level.SEVERE, ">>>" + te.getMessage()); } catch (IOException ioe) { LOG.log(Level.SEVERE, ">>>" + ioe.getMessage()); } }