protected void sendContentTypeHeader ( final OutputStream out ) throws IOException { if ( DEBUG ) { Log . v ( TAG , "enter sendContentTypeHeader(OutputStream out)" ) ; } final String contentType = getContentType ( ) ; if ( contentType != null ) { out . write ( CRLF_BYTES ) ; out . write ( CONTENT_TYPE_BYTES ) ; out . write ( EncodingUtils . getAsciiBytes ( contentType ) ) ; final String charSet = getCharSet ( ) ; if ( charSet != null ) { out . write ( CHARSET_BYTES ) ; out . write ( EncodingUtils . getAsciiBytes ( charSet ) ) ; } } }
Write the content type header to the specified output stream .