Answers for "InputStream into String in java"

4

java create inputstream from string

InputStream targetStream = new ByteArrayInputStream("your string".getBytes());
Posted by: Guest on December-18-2019
0

inputstream to string

Scanner s = new Scanner(inputStream).useDelimiter("\\A");
 String result = s.hasNext() ? s.next() : "";
Posted by: Guest on July-04-2021

Code answers related to "InputStream into String in java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language