📄 bindresp.java
字号:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi
// Source File Name: BindResp.java
package com.SGIP12.sgipdata;
import java.io.OutputStream;
import java.io.PrintStream;
// Referenced classes of package com.SGIP12.sgipdata:
// SGIP_Command, MsgHead
public class BindResp extends SGIP_Command
{
private static final int CommandID = 0x80000001;
private static final int CommandLength = 9;
private String Reserve;
private int Result;
private int flag;
public BindResp(long NodeID)
{
super(NodeID, 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 BindResp(long NodeID, int result)
{
super(NodeID, 9, 0x80000001);
flag = 1;
Result = result;
bodybytes[0] = SGIP_Command.IntToByte(result);
}
public int GetFlag()
{
return flag;
}
public int GetResult()
{
return Result;
}
public void SetResult(int result)
{
Result = result;
bodybytes[0] = SGIP_Command.IntToByte(result);
}
public int readbody()
{
Result = bodybytes[0];
flag = 0;
return 0;
}
public int write(OutputStream outputstream)
{
byte abyte0[] = new byte[TotalLength];
SGIP_Command.BytesCopy(head.Head, abyte0, 0, 19, 0);
SGIP_Command.BytesCopy(bodybytes, abyte0, 0, TotalLength - 20 - 1, 20);
outputstream.write(abyte0);
flag = 1;
return 0;
Exception exception;
exception;
System.out.println(exception.toString());
return -1;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -