How To Convert String To InputStream In Java http://ift.tt/1i7PuBS...

Please Visit: http://ift.tt/1ajReyV



How To Convert String To InputStream In Java

http://ift.tt/1ltRNgH

InputStream is = new ByteArrayInputStream(str.getBytes());

BufferedReader br = new BufferedReader(new InputStreamReader(is));



package com.mkyong; import java.io.BufferedReader; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; public class StringToInputStreamExample { public static void main(String[] args) throws IOException { String str ...







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1i7PwK5

via LifeLong Community

No comments:

Post a Comment