Java String Tokenize tokenizePath(String path)

Here you can find the source of tokenizePath(String path)

Description

tokenize Path

License

Open Source License

Declaration

public static String[] tokenizePath(String path) 

Method Source Code


//package com.java2s;

import java.util.*;

public class Main {
    public static String[] tokenizePath(String path) {
        ArrayList alist = new ArrayList();
        StringTokenizer tokenizer = new StringTokenizer(path, ".");
        while (tokenizer.hasMoreTokens()) {
            alist.add(tokenizer.nextToken());
        }/*w  w  w .jav a2  s  . co m*/
        return (String[]) alist.toArray(new String[alist.size()]);
    }
}

Related

  1. tokenizeLine(String input)
  2. tokenizeLine(String line)
  3. tokenizeName(String name)
  4. tokenizeNumbersFromString(String stream)
  5. tokenizeOnWhitespace(String input)
  6. tokenizePathAsArray(String path)
  7. tokenizePattern(String pattern)
  8. tokenizeQuotedStrings(final String aInput, final String aDelimiters)
  9. tokenizeQuotes(String f1)