@Test public void testModsAsHtml() throws Exception { InputStream xmlIS = TransformersTest.class.getResourceAsStream("alephXServerDetailResponseAsMods.xml"); assertNotNull(xmlIS); StreamSource streamSource = new StreamSource(xmlIS); Transformers mt = new Transformers(); Map<String, Object> params = ModsUtils.modsAsHtmlParameters(Locale.ENGLISH); try { byte[] contents = mt.transformAsBytes(streamSource, Transformers.Format.ModsAsHtml, params); assertNotNull(contents); } finally { close(xmlIS); } }
public byte[] transformAsBytes(Source input, Format format) throws TransformerException { return transformAsBytes(input, format, Collections.<String, Object>emptyMap()); }
Transformers { public byte[] transformAsBytes(Source input, Format format) throws TransformerException { return transformAsBytes(input, format, Collections.<String, Object>emptyMap()); } }
Transformers { public byte[] transformAsBytes(Source input, Format format) throws TransformerException { return transformAsBytes(input, format, Collections.<String, Object>emptyMap()); }  }
Transformers { public byte[] transformAsBytes(Source input, Format format) throws TransformerException { return transformAsBytes(input, format, Collections.<String, Object>emptyMap()); }  Source transform(Source input, Format format); Source transform(Source input, Format format, Map<String, Object> params); byte[] transformAsBytes(Source input, Format format); byte[] transformAsBytes(Source input, Format format, Map<String, Object> params); Source toSource(byte[] buffer); Source dump(Source source, StringBuilder dump); Source dump2Temp(Source source, String filename); }
Transformers { public byte[] transformAsBytes(Source input, Format format) throws TransformerException { return transformAsBytes(input, format, Collections.<String, Object>emptyMap()); }  Source transform(Source input, Format format); Source transform(Source input, Format format, Map<String, Object> params); byte[] transformAsBytes(Source input, Format format); byte[] transformAsBytes(Source input, Format format, Map<String, Object> params); Source toSource(byte[] buffer); Source dump(Source source, StringBuilder dump); Source dump2Temp(Source source, String filename);  }