public Response(Status status,String mimeType,String txt){
  this.status=status;
  this.mimeType=mimeType;
  try {
    this.data=new ByteArrayInputStream(txt.getBytes("UTF-8"));
  }
 catch (  UnsupportedEncodingException uee) {
    uee.printStackTrace();
  }
}

public Response ( Status status , String mimeType , String txt ) { this . status = status ; this . mimeType = mimeType ; try { this . data = new ByteArrayInputStream ( txt . getBytes ( "UTF-8" ) ) ; } catch ( UnsupportedEncodingException uee ) { uee . printStackTrace ( ) ; } }
convenience method that makes an inputstream out of given text .
