protected void sendContentTypeHeader(final OutputStream out) throws IOException {
  LOG.trace("enter sendContentTypeHeader(OutputStream out)");
  final String contentType=getContentType();
  if (contentType != null) {
    out.write(CRLF_BYTES);
    out.write(CONTENT_TYPE_BYTES);
    out.write(EncodingUtil.getAsciiBytes(contentType));
    final String charSet=getCharSet();
    if (charSet != null) {
      out.write(CHARSET_BYTES);
      out.write(EncodingUtil.getAsciiBytes(charSet));
    }
  }
}

protected void sendContentTypeHeader ( final OutputStream out ) throws IOException { LOG . trace ( "enter sendContentTypeHeader(OutputStream out)" ) ; final String contentType = getContentType ( ) ; if ( contentType != null ) { out . write ( CRLF_BYTES ) ; out . write ( CONTENT_TYPE_BYTES ) ; out . write ( EncodingUtil . getAsciiBytes ( contentType ) ) ; final String charSet = getCharSet ( ) ; if ( charSet != null ) { out . write ( CHARSET_BYTES ) ; out . write ( EncodingUtil . getAsciiBytes ( charSet ) ) ; } } }
write the content type header to the specified output stream
