📄 internetoutputstream.java
字号:
package com.pub.servlet;
import java.io.*;
public class InternetOutputStream extends BufferedOutputStream {
public InternetOutputStream(OutputStream out) {
super(out);
}
public InternetOutputStream(OutputStream out, int size) {
super(out, size);
}
public void print( String buffer ) throws IOException {
print( buffer, 0, buffer.getBytes().length);
}
public void println() throws IOException {
write( Http.CRLF.getBytes() );
}
public void print( String text, int offset, int len ) throws IOException {
write( text.getBytes(), offset, len );
}
public void println( String text ) throws IOException {
print( text );
println();
}
public void print( int i ) throws IOException {
print( String.valueOf( i ) );
}
public void println( int i ) throws IOException {
print( i );
println();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -