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