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

📄 mylogstream.java

📁 设备资产管理源代码和 公共的函数
💻 JAVA
字号:
// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   MyLogStream.java

package carven;

import java.io.FileOutputStream;
import java.io.PrintStream;

public class MyLogStream extends PrintStream
{

	public MyLogStream(String streamFile)
		throws Exception
	{
		super(new FileOutputStream(streamFile), true, "gb2312");
	}

	public void println(byte theByte[])
	{
		PrintByte2(theByte);
	}

	public void PrintByte2(byte theByte[])
	{
		String result = "";
		for (int i = 0; i < theByte.length; i++)
		{
			int iTmp = theByte[i];
			String sTmp = Integer.toBinaryString(iTmp);
			sTmp = "00000000" + sTmp;
			sTmp = sTmp.substring(sTmp.length() - 8);
			result = result + sTmp + "\n";
		}

		super.println(result);
	}

	public void PrintByte10(byte theByte[])
	{
		String result = "";
		for (int i = 0; i < theByte.length; i++)
		{
			int tmp = theByte[i];
			result = result + Integer.toString(tmp) + "\n";
		}

		super.println(result);
	}

	public void PrintByte16(byte theByte[])
	{
		String result = "";
		for (int i = 0; i < theByte.length; i++)
		{
			int tmp = theByte[i];
			result = result + Integer.toHexString(tmp) + "\n";
		}

		super.println(result);
	}
}

⌨️ 快捷键说明

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