Top Fields Constructors Methods
com.sun.activation.registries

pack-priv Class LineTokenizer

Located in compilation unit of com.sun.activation.registries.MimeTypeFile.

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private int
private int
private static final String
private Vector<E>
private String

Constructor Summary

AccessConstructor and Description
public
LineTokenizer(String
a string to be parsed.
str
)

Constructs a tokenizer for the specified string.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if there are more tokens available from this tokenizer's string; false otherwise.
hasMoreTokens
()

Tests if there are more tokens available from this tokenizer's string.

public String

Returns:

the next token from this tokenizer.
nextToken
()

Returns the next token from this tokenizer.

public void
private void
skipWhiteSpace()

Skips white space.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

currentPositionback to summary
private int currentPosition
maxPositionback to summary
private int maxPosition
singlesback to summary
private static final String singles
stackback to summary
private Vector<E> stack
strback to summary
private String str

Constructor Detail

LineTokenizerback to summary
public LineTokenizer(String str)

Constructs a tokenizer for the specified string.

Parameters
str:String

a string to be parsed.

Method Detail

hasMoreTokensback to summary
public boolean hasMoreTokens()

Tests if there are more tokens available from this tokenizer's string.

Returns:boolean

true if there are more tokens available from this tokenizer's string; false otherwise.

nextTokenback to summary
public String nextToken()

Returns the next token from this tokenizer.

Returns:String

the next token from this tokenizer.

Exceptions
NoSuchElementException:
if there are no more tokens in this tokenizer's string.
pushTokenback to summary
public void pushToken(String token)
skipWhiteSpaceback to summary
private void skipWhiteSpace()

Skips white space.