Class OIDTokenizer

  • All Implemented Interfaces:

    
    public class OIDTokenizer
    
                        

    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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      OIDTokenizer(String oid) Base constructor.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      boolean hasMoreTokens() Return whether or not there are more tokens in this tokenizer.
      String nextToken() Return the next token in the underlying String.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OIDTokenizer

        OIDTokenizer(String oid)
        Base constructor.
        Parameters:
        oid - the string representation of the OID.
    • Method Detail

      • hasMoreTokens

         boolean hasMoreTokens()

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

        Returns:

        true if there are more tokens, false otherwise.

      • nextToken

         String nextToken()

        Return the next token in the underlying String.

        Returns:

        the next token.