As of JDK 1.1, the preferred way to create a stream from a string is via theclass.
I don't know the answer to the javadoc part, but the first answer you pointed to is a reasonable one: just use
String.getBytes(encoding) to get byte array, then use
But usually the more important question is this: why on earth do you NEED such conversion? In a well designed system, you should never need to go in this direction: it is against the normal flow of things where within JDK you deal with
Strings, and outside with
Streams. So conversions in this direction are quite rare and it does not seem necessary for JDK to have explicit support.