Deliver the message

@param os the physical output stream
@param writerHttp the writer context
167414
@Override
  public void deliver(WriteStream os, OutHttp2 outHttp)
    throws IOException
  {
    try {
      os.flush();
    } finally {
      _future.ok(null);
    }
  }
991606
function outputString(object, writer) {
		if (typeof(object) !== "string") { //$NON-NLS-0$
			if (object.xhr && object.xhr.statusText) {
				/* server error object */
				object = object.xhr.statusText;
			} else {
				object = object.toString();
			}
		}
		return writer.write(object);
	}
821858
protected OutputStream getOutputStream()
        throws IOException
    {
        if (os == null && server != null)
            os = server.writeChannel(channel);

        return os;
    }
1031580
public synchronized static void setStdout(OutputStream os)
  {
    if (_stdoutStream == null) {
      initStdout();
    }

    if (os == _systemErr || os == _systemOut) {
      return;
    }

    if (os instanceof WriteStream) {
      WriteStream out = (WriteStream) os;

      /*
      if (out.getSource() == StdoutStream.create()
          || out.getSource() == StderrStream.create()) {
        return;
      }
      */
    }
    
    _stdoutStream.setStream(os);
  }
632240
@Override
    public void write(int c) throws IOException {
    	for(OutputStream os : oss) {
    		os.write(c);
    	}
    }
1038509
public void writeToOutputStream(OutputStream os) throws IOException {
		if(sb == null) {
			throw new IllegalStateException("No interal StringBuffer");
		}
		byte[] b;
		try {
			b = getBytes();
		} catch (UnsupportedEncodingException e) {
			throw new RuntimeException(e);
		}
		os.write(b);
	}
1355537
public void writeTo(final PacketOutputStream os) throws IOException {
    os.write(QUOTE);
    os.write(dateByteFormat());
    os.write(QUOTE);
  }
595380
public void setProcessInputStream(OutputStream os) {
    if (input != null) {
      if (input == System.in) {
        inputThread = createSystemInPump(input, os);
      }
      else {
        inputThread = createPump(input, os, true, true);
      }
    }
    else {
      try {
        os.close();
      }
      catch (IOException e) {
        log.info("Got exception while closing output stream", e);
      }
    }
  }
1340497
static void sendResponse(String output, HttpServletResponse response)
      throws IOException {
    PrintWriter out = null;
    try {
      out = response.getWriter();
      out.write(output);
    } finally {
      if (out != null) {
        out.close();
      }
    }
  }
1016377
@Override
  public void deliver(WriteStream os, OutHttp2 outHttp)
    throws IOException
  {
    outHttp.writeFlow(_streamId, _credit);
  }
696523
public <T extends OutputStream> T write(T os) throws IOException {
        close();

        if (!(this.os instanceof ByteArrayOutputStream))
            throw new IllegalStateException("Cannot write to another target if setOutputStream has been called");
        final byte[] content = ((ByteArrayOutputStream) this.os).toByteArray();

        if (packer != null)
            packer.pack(new JarInputStream(new ByteArrayInputStream(content)), os);
        else
            os.write(content);

        os.close();
        return os;
    }
1184148
private void setProcessInputStream(OutputStream os) {
        if (input != null) {
            inputThread = createPump(input, os, true);
        } else {
            AntFileUtils.close(os);
        }
    }
225556
public static void setBytes(OutputStream os, byte[] bytes) throws IOException {
        try {
            os.write(bytes);
        } finally {
            closeWithWarning(os);
        }
    }
379197
public void write(OutputStream os)
    throws IOException
  {
    ByteCodeWriter out = new ByteCodeWriter(os, this);

    out.writeInt(MAGIC);
    out.writeShort(_minor);
    out.writeShort(_major);

    _constantPool.write(out);

    out.writeShort(_accessFlags);
    out.writeClass(_thisClass);
    out.writeClass(_superClass);

    out.writeShort(_interfaces.size());
    for (int i = 0; i < _interfaces.size(); i++) {
      String className = _interfaces.get(i);

      out.writeClass(className);
    }

    out.writeShort(_fields.size());
    for (int i = 0; i < _fields.size(); i++) {
      JavaField field = _fields.get(i);

      field.write(out);
    }

    out.writeShort(_methods.size());
    for (int i = 0; i < _methods.size(); i++) {
      JavaMethod method = _methods.get(i);

      method.write(out);
    }

    out.writeShort(_attributes.size());
    for (int i = 0; i < _attributes.size(); i++) {
      Attribute attr = _attributes.get(i);

      attr.write(out);
    }
  }
977792
public void writeHeader(OutputStreamCounter os) throws IOException {
		if (appendmode) {
			os.write(HEADER[0]);
		}
		else {
			os.write(HEADER[1]);
			os.write(getVersionAsByteArray(header_version));
			os.write(HEADER[2]);
			headerWasWritten = true;
		}
	}
1178789
public byte[] sendSubmitSmResp(OutputStream os, int sequenceNumber,
            String messageId) throws PDUStringException, IOException {
        return pduSender.sendSubmitSmResp(os, sequenceNumber, messageId);
    }
922954
@Override
  public void deliver(WriteStream os, OutHttp2 outHttp)
    throws IOException
  {
    int length = _length;
    
    int flags;
    
    switch (_flags) {
    case CONT_STREAM:
      flags = 0;
      break;
    case END_STREAM:
      flags = Http2Constants.END_STREAM;
      break;
    default:
      flags = 0;
      break;
    }
    
    outHttp.writeData(getStreamId(), _tBuf.buffer(), _offset, length, flags);
    
    /*
    System.out.println("  WDS: " + length);
    
    os.write((byte) (length >> 8)); 
    os.write((byte) (length));
    os.write(HttpConstants.FRAME_DATA);
    
    switch (_flags) {
    case CONT_STREAM:
      os.write(0);
      break;
    case END_STREAM:
      os.write(HttpConstants.END_STREAM);
      break;
    default:
      os.write(0);
      break;
    }
    
    BitsUtil.writeInt(os, getStreamId());
    
    os.write(_tBuf.getBuffer(), _offset, _length);
    */
    
    _tBuf.free();
  }