docs: public static InputStream getStringInputStream(String string)
      {
          InputStream is = null;
          try   {
              ByteArrayOutputStream ba = new ByteArrayOutputStream();
              DataOutputStream os = new DataOutputStream(ba);
              os.writeUTF(string);
              os.flush();
              is = new ByteArrayInputStream(ba.toByteArray());
          } catch (IOException ex)    {
              ex.printStackTrace();
          }
          return is;
      }