Class ExtendedProperties.PropertiesTokenizer

  • All Implemented Interfaces:
    java.util.Enumeration<java.lang.Object>
    Enclosing class:
    ExtendedProperties

    static class ExtendedProperties.PropertiesTokenizer
    extends java.util.StringTokenizer
    This class divides into tokens a property value. Token separator is "," but commas into the property value are escaped using the backslash in front.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) static java.lang.String DELIMITER
      The property delimiter used while parsing (a comma).
    • Constructor Summary

      Constructors 
      Constructor Description
      PropertiesTokenizer​(java.lang.String string)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasMoreTokens()
      Check whether the object has more tokens.
      java.lang.String nextToken()
      Get next token.
      • Methods inherited from class java.util.StringTokenizer

        countTokens, hasMoreElements, nextElement, nextToken
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Enumeration

        asIterator
    • Field Detail

      • DELIMITER

        static final java.lang.String DELIMITER
        The property delimiter used while parsing (a comma).
        See Also:
        Constant Field Values
    • Constructor Detail

      • PropertiesTokenizer

        public PropertiesTokenizer​(java.lang.String string)
        Constructor.
        Parameters:
        string - A String.
    • Method Detail

      • hasMoreTokens

        public boolean hasMoreTokens()
        Check whether the object has more tokens.
        Overrides:
        hasMoreTokens in class java.util.StringTokenizer
        Returns:
        True if the object has more tokens.
      • nextToken

        public java.lang.String nextToken()
        Get next token.
        Overrides:
        nextToken in class java.util.StringTokenizer
        Returns:
        A String.