?? cmppquery.java
字號:
// Decompiled by DJ v2.9.9.60 Copyright 2000 Atanas Neshkov Date: 2004-4-16 11:12:23
// Home Page : http://members.fortunecity.com/neshkov/dj.html - Check often for new version!
// Decompiler options: packimports(3)
// Source File Name: cmppQuery.java
package com.aspire.cmppApi;
import java.io.*;
// Referenced classes of package com.aspire.cmppApi:
// cmppCommon, cmppSocket
public class cmppQuery
{
public cmppQuery(cmppSocket cmppsocket)
{
curTime = "";
QueryType = 0;
QueryCode = "";
Reserve = "Reserve";
conn = cmppsocket;
SequenceId = 0;
CommandID = 6;
TotalLength = 39;
bodybytes = new byte[27];
headbytes = new byte[12];
cmppCommon.BytesCopy(cmppCommon.IntToBytes4(TotalLength), headbytes, 0, 3, 0);
cmppCommon.BytesCopy(cmppCommon.IntToBytes4(CommandID), headbytes, 0, 3, 4);
cmppCommon.BytesCopy(cmppCommon.IntToBytes4(SequenceId), headbytes, 0, 3, 8);
}
public int getTotalLength()
{
return TotalLength;
}
public int sendcmppQuery()
{
int i = 0;
synchronized(conn)
{
try
{
conn.bout.write(headbytes);
conn.bout.write(bodybytes);
conn.bout.flush();
}
catch(IOException ioexception)
{
System.out.println(ioexception.toString());
i = -5;
int j = i;
return j;
}
}
return i;
}
public void setSequenceId(int i)
{
SequenceId = i;
cmppCommon.BytesCopy(cmppCommon.IntToBytes4(i), headbytes, 0, 3, 8);
}
public void setcmppQuerys(String s, int i, String s1, String s2)
{
int j = 0;
byte abyte0[] = new byte[8];
abyte0 = s.getBytes();
cmppCommon.BytesCopy(abyte0, bodybytes, 0, abyte0.length - 1, j);
j += 8;
bodybytes[j] = (byte)i;
j++;
byte abyte1[] = new byte[10];
abyte1 = s1.getBytes();
cmppCommon.BytesCopy(abyte1, bodybytes, 0, abyte1.length - 1, j);
j += 10;
byte abyte2[] = new byte[8];
abyte2 = s2.getBytes();
cmppCommon.BytesCopy(abyte2, bodybytes, 0, abyte2.length - 1, j);
}
public byte bodybytes[];
public byte headbytes[];
String curTime;
int QueryType;
String QueryCode;
String Reserve;
private int CommandID;
private int SequenceId;
int TotalLength;
cmppSocket conn;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -