⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 outstream.java

📁 this is a sample of a java bot. use to educate..
💻 JAVA
字号:
import java.io.OutputStream;
import java.io.IOException;

class OutStream {

	private OutputStream out;

	public OutStream(OutputStream out) {
		this.out = out;
	}

	public void write(byte[] buffer, int offset, int len) throws IOException {
		this.out.write(buffer, offset, len);
	}

	public void writeInt(int i) throws IOException {
		byte[] buffer = { (byte)(i >> 24), (byte)(i >> 16), (byte)(i >> 8), (byte)i };
		this.out.write(buffer, 0, 4);
	}

	public void writeString(String str) throws IOException {
		writeInt(str.length());
		this.out.write(str.getBytes(), 0, str.length());
	}

	public OutputStream getOutputStream() {
		return this.out;
	}

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -