How do I put a String in the Stream in Java?

Asked 2 years ago, Updated 2 years ago, 109 views

I want to convert the String value into InputStreamReader, what should I do?

string java stream

2022-09-22 22:21

1 Answers

ByteArrayInputStream is a simple solution. InputStream is = new ByteArrayInputStream( myString.getBytes( charset ) );


2022-09-22 22:21

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.