コード例 #1
0
ファイル: HttpConnection.java プロジェクト: tkisason/zaproxy
 /**
  * @deprecated Use {@link #printLine(String, String)}
  *     <p>Writes the specified String (as bytes), followed by <tt>"\r\n".getBytes()</tt> to the
  *     output stream.
  * @param data the data to be written
  * @throws IllegalStateException if the connection is not open
  * @throws IOException if an I/O problem occurs
  */
 @Deprecated
 public void printLine(String data) throws IOException, IllegalStateException {
   LOG.trace("enter HttpConnection.printLine(String)");
   writeLine(EncodingUtil.getBytes(data, "ISO-8859-1"));
 }
コード例 #2
0
ファイル: HttpConnection.java プロジェクト: tkisason/zaproxy
 /**
  * Writes the specified String (as bytes) to the output stream.
  *
  * @param data the string to be written
  * @param charset the charset to use for writing the data
  * @throws IllegalStateException if the connection is not open
  * @throws IOException if an I/O problem occurs
  * @since 3.0
  */
 public void print(String data, String charset) throws IOException, IllegalStateException {
   LOG.trace("enter HttpConnection.print(String)");
   write(EncodingUtil.getBytes(data, charset));
 }