P
Patricia Shanahan
I need to generate an InputStream from a String containing some test data.
StringBufferInputStream is deprecated, and the documentation points to
StringReader.
However, after looking through java.io several times, I have not found
how to construct an InputStream from a Reader.
What is the proper, undeprecated, replacement code for:
InputStream in = new StringBufferInputStream(someString);
Thanks,
Patricia
StringBufferInputStream is deprecated, and the documentation points to
StringReader.
However, after looking through java.io several times, I have not found
how to construct an InputStream from a Reader.
What is the proper, undeprecated, replacement code for:
InputStream in = new StringBufferInputStream(someString);
Thanks,
Patricia