I have a String that I want to use as an InputStream. In Java 1.0, you could use java.io.StringBufferInputStream, but that has been @Deprecra
Well, one possible way is to:
PipedOutputStream (you can specify the encoding in the constructor)OutputStreamWriter can be read from the PipedInputStream!Of course, this seems like a rather hackish way to do it, but at least it is a way.