Top Description Fields Constructors Methods
org.bouncycastle.asn1

public Class OIDTokenizer

extends Object
Class Inheritance

Class for breaking up an OID into it's component tokens, ala java.util.StringTokenizer. We need this class as some of the lightweight Java environment don't support classes like StringTokenizer.

Field Summary

Modifier and TypeField and Description
private int
private String

Constructor Summary

AccessConstructor and Description
public
OIDTokenizer(String
the string representation of the OID.
oid
)

Base constructor.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if there are more tokens, false otherwise.
hasMoreTokens
()

Return whether or not there are more tokens in this tokenizer.

public String

Returns:

the next token.
nextToken
()

Return the next token in the underlying String.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

indexback to summary
private int index
oidback to summary
private String oid

Constructor Detail

OIDTokenizerback to summary
public OIDTokenizer(String oid)

Base constructor.

Parameters
oid:String

the string representation of the OID.

Method Detail

hasMoreTokensback to summary
public boolean hasMoreTokens()

Return whether or not there are more tokens in this tokenizer.

Returns:boolean

true if there are more tokens, false otherwise.

nextTokenback to summary
public String nextToken()

Return the next token in the underlying String.

Returns:String

the next token.