Microsoft SDK for Java

parse

The parse method of the IntRanges Class contains the following signatures:

parse(String str, String delims)
parse(String str)

parse(String str, String delims)

Parses the ranges in the string, separated with specified delimiters. This method tokenizes using StringTokenizer.

Syntax

public synchronized void parse(String str, String delims);

Parameters

str The string to be parsed.
delims The delimiters.

parse(String str)

Parses comma-delimited ranges in the string.

Syntax

public void parse(String str);

Parameters

str A string containing ranges of integers, where the bounds of each range are separated by a hyphen (-). A range of a single integer can be entered by including just the single integer, separated by delimiters.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.