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