@Test public void testToReader() throws Exception { Assert.assertNotNull(InputSourceTransforms.TRANSFORMER.toReader(newInputSource("Hello SwitchYard"))); }
@Transformer public Reader toReader(InputSource inSource) { Reader reader = inSource.getCharacterStream(); if (reader != null) { return new StringReader(ReaderTransforms.TRANSFORMER.toString(reader)); } return null; }
InputSourceTransforms { @Transformer public Reader toReader(InputSource inSource) { Reader reader = inSource.getCharacterStream(); if (reader != null) { return new StringReader(ReaderTransforms.TRANSFORMER.toString(reader)); } return null; } }
InputSourceTransforms { @Transformer public Reader toReader(InputSource inSource) { Reader reader = inSource.getCharacterStream(); if (reader != null) { return new StringReader(ReaderTransforms.TRANSFORMER.toString(reader)); } return null; }  }
InputSourceTransforms { @Transformer public Reader toReader(InputSource inSource) { Reader reader = inSource.getCharacterStream(); if (reader != null) { return new StringReader(ReaderTransforms.TRANSFORMER.toString(reader)); } 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 Reader toReader(InputSource inSource) { Reader reader = inSource.getCharacterStream(); if (reader != null) { return new StringReader(ReaderTransforms.TRANSFORMER.toString(reader)); } 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; }