@SuppressWarnings({"javadoc", "deprecation"}) @Test public void testWrapString() throws Exception { String testString = "Testing©ÿ»"; final InputStream inputStream = Streams.wrapString(testString); byte[] stringBytes = testString.getBytes(Charset.defaultCharset()); stringBytes = Arrays.copyOf(stringBytes, stringBytes.length); assertTrue("Streams should be equal", Arrays.equals(stringBytes, ByteStreams.toByteArray(inputStream))); }
@Deprecated public static InputStream wrapString(String str) { return wrapString(str, Charset.defaultCharset()); }
Streams { @Deprecated public static InputStream wrapString(String str) { return wrapString(str, Charset.defaultCharset()); } }
Streams { @Deprecated public static InputStream wrapString(String str) { return wrapString(str, Charset.defaultCharset()); } private  Streams(); }
Streams { @Deprecated public static InputStream wrapString(String str) { return wrapString(str, Charset.defaultCharset()); } private  Streams(); @Deprecated static InputStream wrapString(String str); static InputStream wrapString(String str, Charset charset); @Deprecated static String readAll(final InputStream inputStream); static String readAll(final InputStream inputStream, Charset charset); @Deprecated static void write(String str, final OutputStream outputStream); static void write(String str, final OutputStream outputStream, Charset charset); static void copy(final InputStream inputStream, final OutputStream outputStream); }
Streams { @Deprecated public static InputStream wrapString(String str) { return wrapString(str, Charset.defaultCharset()); } private  Streams(); @Deprecated static InputStream wrapString(String str); static InputStream wrapString(String str, Charset charset); @Deprecated static String readAll(final InputStream inputStream); static String readAll(final InputStream inputStream, Charset charset); @Deprecated static void write(String str, final OutputStream outputStream); static void write(String str, final OutputStream outputStream, Charset charset); static void copy(final InputStream inputStream, final OutputStream outputStream);  }