/** * Writes characters from the specified string followed by a line delimiter * to this session buffer. * <p> * This method uses CR-LF as a line delimiter. * * @param s the line. * @exception IOException if an I/O error occurs. */ @Override public void writeLine(final String s) throws IOException { if (s == null) { return; } if (s.length() > 0) { if (this.encoder == null) { for (int i = 0; i < s.length(); i++) { write(s.charAt(i)); } } else { final CharBuffer cbuf = CharBuffer.wrap(s); writeEncoded(cbuf); } } write(CRLF); }
/** * Writes characters from the specified string followed by a line delimiter * to this session buffer. * <p> * This method uses CR-LF as a line delimiter. * * @param s the line. * @throws IOException if an I/O error occurs. */ @Override public void writeLine(final String s) throws IOException { if (s == null) { return; } if (s.length() > 0) { if (this.encoder == null) { for (int i = 0; i < s.length(); i++) { write(s.charAt(i)); } } else { final CharBuffer cbuf = CharBuffer.wrap(s); writeEncoded(cbuf); } } write(CRLF); }
/** * Writes characters from the specified string followed by a line delimiter * to this session buffer. * <p> * This method uses CR-LF as a line delimiter. * * @param s the line. * @exception IOException if an I/O error occurs. */ @Override public void writeLine(final String s) throws IOException { if (s == null) { return; } if (s.length() > 0) { if (this.encoder == null) { for (int i = 0; i < s.length(); i++) { write(s.charAt(i)); } } else { final CharBuffer cbuf = CharBuffer.wrap(s); writeEncoded(cbuf); } } write(CRLF); }
/** * Writes characters from the specified string followed by a line delimiter * to this session buffer. * <p> * This method uses CR-LF as a line delimiter. * * @param s the line. * @exception IOException if an I/O error occurs. */ public void writeLine(final String s) throws IOException { if (s == null) { return; } if (s.length() > 0) { if (this.encoder == null) { for (int i = 0; i < s.length(); i++) { write(s.charAt(i)); } } else { final CharBuffer cbuf = CharBuffer.wrap(s); writeEncoded(cbuf); } } write(CRLF); }
/** * Writes characters from the specified string followed by a line delimiter * to this session buffer. * <p> * This method uses CR-LF as a line delimiter. * * @param s the line. * @exception IOException if an I/O error occurs. */ public void writeLine(final String s) throws IOException { if (s == null) { return; } if (s.length() > 0) { if (this.encoder == null) { for (int i = 0; i < s.length(); i++) { write(s.charAt(i)); } } else { final CharBuffer cbuf = CharBuffer.wrap(s); writeEncoded(cbuf); } } write(CRLF); }
/** * Writes characters from the specified string followed by a line delimiter * to this session buffer. * <p> * This method uses CR-LF as a line delimiter. * * @param s the line. * @exception IOException if an I/O error occurs. */ @Override public void writeLine(final String s) throws IOException { if (s == null) { return; } if (s.length() > 0) { if (this.encoder == null) { for (int i = 0; i < s.length(); i++) { write(s.charAt(i)); } } else { final CharBuffer cbuf = CharBuffer.wrap(s); writeEncoded(cbuf); } } write(CRLF); }