@Test public void testToInputSource() throws Exception { Assert.assertNotNull(StringTransforms.TRANSFORMER.toInputSource("source")); }
@Transformer public InputSource toInputSource(String string) { InputSource inputSource = new InputSource(); inputSource.setByteStream(new ByteArrayInputStream(string.getBytes())); inputSource.setCharacterStream(new StringReader(string)); return inputSource; }
StringTransforms { @Transformer public InputSource toInputSource(String string) { InputSource inputSource = new InputSource(); inputSource.setByteStream(new ByteArrayInputStream(string.getBytes())); inputSource.setCharacterStream(new StringReader(string)); return inputSource; } }
StringTransforms { @Transformer public InputSource toInputSource(String string) { InputSource inputSource = new InputSource(); inputSource.setByteStream(new ByteArrayInputStream(string.getBytes())); inputSource.setCharacterStream(new StringReader(string)); return inputSource; }  }
StringTransforms { @Transformer public InputSource toInputSource(String string) { InputSource inputSource = new InputSource(); inputSource.setByteStream(new ByteArrayInputStream(string.getBytes())); inputSource.setCharacterStream(new StringReader(string)); return inputSource; }  @Transformer Reader toReader(String string); @Transformer InputStream toInputStream(String string); @Transformer InputSource toInputSource(String string); @Transformer Integer toInteger(String string); @Transformer Long toLong(String string); @Transformer Short toShort(String string); @Transformer char[] toChars(String string); @Transformer Character toCharacter(String string); @Transformer byte[] toBytes(String string); @Transformer Double toDouble(String string); @Transformer Float toFloat(String string); }
StringTransforms { @Transformer public InputSource toInputSource(String string) { InputSource inputSource = new InputSource(); inputSource.setByteStream(new ByteArrayInputStream(string.getBytes())); inputSource.setCharacterStream(new StringReader(string)); return inputSource; }  @Transformer Reader toReader(String string); @Transformer InputStream toInputStream(String string); @Transformer InputSource toInputSource(String string); @Transformer Integer toInteger(String string); @Transformer Long toLong(String string); @Transformer Short toShort(String string); @Transformer char[] toChars(String string); @Transformer Character toCharacter(String string); @Transformer byte[] toBytes(String string); @Transformer Double toDouble(String string); @Transformer Float toFloat(String string); static final StringTransforms TRANSFORMER; }