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

📄 bindresp.java

📁 SGIP1.2java SP 收发短信 采用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:   BindResp.java

package spApi;

import java.io.OutputStream;
import java.io.PrintStream;

// Referenced classes of package spApi:
//			SGIP_Command, MsgHead

public class BindResp extends SGIP_Command
{

	private static final int CommandLength = 9;
	private static final int CommandID = 0x80000001;
	private int Result;
	private int flag;

	public BindResp(long l)
	{
		super(l, 9, 0x80000001);
		flag = 1;
	}

	public BindResp(SGIP_Command sgip_command)
	{
		super(sgip_command);
		flag = 1;
	}

	public BindResp(MsgHead msghead)
	{
		super(msghead, 9, 0x80000001);
		flag = 1;
	}

	public BindResp()
	{
		super(9, 0x80000001);
		flag = 1;
	}

	public int GetFlag()
	{
		return flag;
	}

	public BindResp(long l, int i)
	{
		super(l, 9, 0x80000001);
		flag = 1;
		Result = i;
		super.bodybytes[0] = SGIP_Command.IntToByte(i);
	}

	public int readbody()
	{
		Result = super.bodybytes[0];
		flag = 0;
		return 0;
	}

	public int GetResult()
	{
		return Result;
	}

	public void SetResult(int i)
	{
		Result = i;
		super.bodybytes[0] = SGIP_Command.IntToByte(i);
	}

	public int write(OutputStream outputstream)
	{
		try
		{
			byte abyte0[] = new byte[super.TotalLength];
			SGIP_Command.BytesCopy(super.head.Head, abyte0, 0, 19, 0);
			SGIP_Command.BytesCopy(super.bodybytes, abyte0, 0, super.TotalLength - 20 - 1, 20);
			outputstream.write(abyte0);
			flag = 1;
			return 0;
		}
		catch (Exception exception)
		{
			System.out.println(exception.toString());
		}
		return -1;
	}
}

⌨️ 快捷键说明

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