@Test public void testToInputSource() throws Exception { Assert.assertNotNull(NumberTransforms.TRANSFORMER.toInputSource(1D)); }
@Transformer public InputSource toInputSource(Number number) { String string = toString(number); InputSource inputSource = new InputSource(); inputSource.setByteStream(new ByteArrayInputStream(string.getBytes())); inputSource.setCharacterStream(new StringReader(string)); return inputSource; }
NumberTransforms { @Transformer public InputSource toInputSource(Number number) { String string = toString(number); InputSource inputSource = new InputSource(); inputSource.setByteStream(new ByteArrayInputStream(string.getBytes())); inputSource.setCharacterStream(new StringReader(string)); return inputSource; } }
NumberTransforms { @Transformer public InputSource toInputSource(Number number) { String string = toString(number); InputSource inputSource = new InputSource(); inputSource.setByteStream(new ByteArrayInputStream(string.getBytes())); inputSource.setCharacterStream(new StringReader(string)); return inputSource; }  }
NumberTransforms { @Transformer public InputSource toInputSource(Number number) { String string = toString(number); InputSource inputSource = new InputSource(); inputSource.setByteStream(new ByteArrayInputStream(string.getBytes())); inputSource.setCharacterStream(new StringReader(string)); return inputSource; }  @Transformer String toString(Number number); @Transformer Reader toReader(Number number); @Transformer InputStream toInputStream(Number number); @Transformer InputSource toInputSource(Number number); @Transformer char[] toChars(Number number); @Transformer Character toCharacter(Number number); @Transformer byte[] toBytes(Number number); }
NumberTransforms { @Transformer public InputSource toInputSource(Number number) { String string = toString(number); InputSource inputSource = new InputSource(); inputSource.setByteStream(new ByteArrayInputStream(string.getBytes())); inputSource.setCharacterStream(new StringReader(string)); return inputSource; }  @Transformer String toString(Number number); @Transformer Reader toReader(Number number); @Transformer InputStream toInputStream(Number number); @Transformer InputSource toInputSource(Number number); @Transformer char[] toChars(Number number); @Transformer Character toCharacter(Number number); @Transformer byte[] toBytes(Number number); static final NumberTransforms TRANSFORMER; }