📄 x509nametokenizer.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: X509NameTokenizer.java
package jit.asn1.x509;
public class X509NameTokenizer
{
private String oid;
private int index;
private StringBuffer buf;
public X509NameTokenizer(String oid)
{
buf = new StringBuffer();
this.oid = oid;
index = -1;
}
public boolean hasMoreTokens()
{
return index != oid.length();
}
public String nextToken()
{
if(index == oid.length())
return null;
int end = index + 1;
boolean quoted = false;
boolean escaped = false;
buf.setLength(0);
for(; end != oid.length(); end++)
{
char c = oid.charAt(end);
if(c == '"')
{
if(!escaped)
quoted = !quoted;
else
buf.append(c);
escaped = false;
continue;
}
if(escaped || quoted)
{
buf.append(c);
escaped = false;
continue;
}
if(c == '\\')
{
escaped = true;
continue;
}
if(c == ',')
break;
buf.append(c);
}
index = end;
return buf.toString().trim();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -