static public void writeContents ( String contents , OutputStream os ) throws IOException { ByteArrayInputStream bin = new ByteArrayInputStream ( contents . getBytes ( CDM . utf8Charset ) ) ; IO . copy ( bin , os ) ; }
Wite the contents from the String to a Stream