📄 ddbasekeyimpl.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: DDBaseKeyImpl.java
package org.gudy.azureus2.pluginsimpl.local.ddb;
import org.gudy.azureus2.core3.util.ByteFormatter;
import org.gudy.azureus2.plugins.ddb.DistributedDatabaseException;
import org.gudy.azureus2.plugins.ddb.DistributedDatabaseKey;
// Referenced classes of package org.gudy.azureus2.pluginsimpl.local.ddb:
// DDBaseHelpers
public class DDBaseKeyImpl
implements DistributedDatabaseKey
{
private Object key;
private byte key_bytes[];
private String description;
protected DDBaseKeyImpl(Object _key)
throws DistributedDatabaseException
{
this(_key, null);
}
protected DDBaseKeyImpl(Object _key, String _description)
throws DistributedDatabaseException
{
key = _key;
description = _description;
key_bytes = DDBaseHelpers.encode(key);
if (description == null)
if (key instanceof String)
description = (String)key;
else
description = (new StringBuilder()).append("[").append(ByteFormatter.nicePrint(key_bytes)).append("]").toString();
}
public Object getKey()
{
return key;
}
protected byte[] getBytes()
{
return key_bytes;
}
public String getDescription()
{
return description;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -