📄 rfctest$tidentry.java
字号:
// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3)
// Source File Name: RfcTest.java
package com.sap.mw.jco.support;
import java.io.UnsupportedEncodingException;
import java.util.Arrays;
// Referenced classes of package com.sap.mw.jco.support:
// RfcTest
static class RfcTest$TidEntry
{
byte[] getBytes()
{
try
{
byte result[] = new byte[60];
Arrays.fill(result, (byte)32);
System.arraycopy(TID.getBytes("UTF8"), 0, result, 0, TID.length());
System.arraycopy(state.getBytes("UTF8"), 0, result, 34, state.length());
result[59] = 10;
return result;
}
catch(UnsupportedEncodingException ex)
{
ex.printStackTrace();
}
return null;
}
static RfcTest$TidEntry parse(byte line[])
{
if(line[0] == 42)
return null;
RfcTest$TidEntry entry = new RfcTest$TidEntry((new String(line, 0, 32)).trim(), (new String(line, 34, 25)).trim());
if(entry.TID.length() > 0 && entry.state.length() > 0)
return entry;
else
return null;
}
String TID;
String state;
private static final int tid_offset = 0;
private static final int tid_length = 32;
private static final int state_offset = 34;
private static final int state_length = 25;
RfcTest$TidEntry(String tid, String state)
{
TID = tid;
this.state = state;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -