Convert String to Stream with Java

On March 29, 2013, in Java, Programming, by LuCuS

Convert string to stream with Java.

	public static InputStream convertStringToStream(String input)
		InputStream is = new ByteArrayInputStream(input.getBytes());
		BufferedReader br = new BufferedReader(new InputStreamReader(is));
		return is;

Thank you for your interest in my site. If you find the information provided on this site useful, please consider making a donation to help continue development!

PayPal will open in a new tab.

Related Posts

Tagged with:  

Leave a Reply