@Test public void testToInputStream() throws Exception { Assert.assertNotNull(InputSourceTransforms.TRANSFORMER.toInputStream(newInputSource("Hello SwitchYard"))); }
@Transformer public InputStream toInputStream(InputSource inSource) { InputStream stream = inSource.getByteStream(); if (stream != null) { return new ByteArrayInputStream(InputStreamTransforms.TRANSFORMER.toBytes(stream)); } return null; }
InputSourceTransforms { @Transformer public InputStream toInputStream(InputSource inSource) { InputStream stream = inSource.getByteStream(); if (stream != null) { return new ByteArrayInputStream(InputStreamTransforms.TRANSFORMER.toBytes(stream)); } return null; } }
InputSourceTransforms { @Transformer public InputStream toInputStream(InputSource inSource) { InputStream stream = inSource.getByteStream(); if (stream != null) { return new ByteArrayInputStream(InputStreamTransforms.TRANSFORMER.toBytes(stream)); } return null; }  }
InputSourceTransforms { @Transformer public InputStream toInputStream(InputSource inSource) { InputStream stream = inSource.getByteStream(); if (stream != null) { return new ByteArrayInputStream(InputStreamTransforms.TRANSFORMER.toBytes(stream)); } return null; }  @Transformer String toString(InputSource inSource); @Transformer Reader toReader(InputSource inSource); @Transformer InputStream toInputStream(InputSource inSource); @Transformer Integer toInteger(InputSource inSource); @Transformer Long toLong(InputSource inSource); @Transformer Short toShort(InputSource inSource); @Transformer char[] toChars(InputSource inSource); @Transformer Character toCharacter(InputSource inSource); @Transformer byte[] toBytes(InputSource inSource); @Transformer Double toDouble(InputSource inSource); @Transformer Float toFloat(InputSource inSource); }
InputSourceTransforms { @Transformer public InputStream toInputStream(InputSource inSource) { InputStream stream = inSource.getByteStream(); if (stream != null) { return new ByteArrayInputStream(InputStreamTransforms.TRANSFORMER.toBytes(stream)); } return null; }  @Transformer String toString(InputSource inSource); @Transformer Reader toReader(InputSource inSource); @Transformer InputStream toInputStream(InputSource inSource); @Transformer Integer toInteger(InputSource inSource); @Transformer Long toLong(InputSource inSource); @Transformer Short toShort(InputSource inSource); @Transformer char[] toChars(InputSource inSource); @Transformer Character toCharacter(InputSource inSource); @Transformer byte[] toBytes(InputSource inSource); @Transformer Double toDouble(InputSource inSource); @Transformer Float toFloat(InputSource inSource); static final InputSourceTransforms TRANSFORMER; }