@Test public void nullString_ReturnsNullInputStream() { assertNull(adapter.adapt(null)); }
@Override public InputStream adapt(String source) { if (source == null) { return null; } try { return new StringInputStream(source); } catch (UnsupportedEncodingException e) { throw new SdkClientException(e); } }
StringToInputStreamAdapter implements TypeAdapter<String, InputStream> { @Override public InputStream adapt(String source) { if (source == null) { return null; } try { return new StringInputStream(source); } catch (UnsupportedEncodingException e) { throw new SdkClientException(e); } } }
StringToInputStreamAdapter implements TypeAdapter<String, InputStream> { @Override public InputStream adapt(String source) { if (source == null) { return null; } try { return new StringInputStream(source); } catch (UnsupportedEncodingException e) { throw new SdkClientException(e); } }  }
StringToInputStreamAdapter implements TypeAdapter<String, InputStream> { @Override public InputStream adapt(String source) { if (source == null) { return null; } try { return new StringInputStream(source); } catch (UnsupportedEncodingException e) { throw new SdkClientException(e); } }  @Override InputStream adapt(String source); }
StringToInputStreamAdapter implements TypeAdapter<String, InputStream> { @Override public InputStream adapt(String source) { if (source == null) { return null; } try { return new StringInputStream(source); } catch (UnsupportedEncodingException e) { throw new SdkClientException(e); } }  @Override InputStream adapt(String source);  }