153154155156157158159160161162
contenttype, -1, true); OutputStream wrapped = socket.getOutputStream(); wrapped.write(header.getBytes()); // create an output stream that will stream // the result using chunked coding this.os = new HTTPChunkedOutputStream(wrapped); } return os; }