APIdia Launch Partner
Top Description Inners Fields Constructors Methods
sun.jvmstat.perfdata.monitor

public Class AliasFileParser

extends Object
Class Inheritance
Imports
java.net.*, java.io.*, java.util.*

Class for parsing alias files. File format is expected to follow the following syntax: alias name [alias]* Java style comments can occur anywhere within the file.
Author
Brian Doherty
Since
1.5

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Modifier and TypeField and Description
private static final String
private AliasFileParser.Token
private URL
private StreamTokenizer

Constructor Summary

AccessConstructor and Description
pack-priv
AliasFileParser(URL inputfile)

Method Summary

Modifier and TypeMethod and Description
private void
match(int ttype, String token)

method to match the current Token to a specified token type and value Throws a SyntaxException if token doesn't match.

private void
match(int ttype)

private void
match(String token)

private void
nextToken()

method to get the next token as a Token type

public void
parse(Map<String, ArrayList<String>> map)

method to parse the given input file.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ALIASback to summary
private static final String ALIAS
currentTokenback to summary
private AliasFileParser.Token currentToken
inputfileback to summary
private URL inputfile
stback to summary
private StreamTokenizer st

Constructor Detail

AliasFileParserback to summary
pack-priv AliasFileParser(URL inputfile)

Method Detail

matchback to summary
private void match(int ttype, String token) throws IOException, SyntaxException

method to match the current Token to a specified token type and value Throws a SyntaxException if token doesn't match.

matchback to summary
private void match(int ttype) throws IOException, SyntaxException
matchback to summary
private void match(String token) throws IOException, SyntaxException
nextTokenback to summary
private void nextToken() throws IOException

method to get the next token as a Token type

parseback to summary
public void parse(Map<String, ArrayList<String>> map) throws SyntaxException, IOException

method to parse the given input file.

sun.jvmstat.perfdata.monitor back to summary

private Class AliasFileParser.Token

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
public String
public int

Constructor Summary

AccessConstructor and Description
public
Token(int ttype, String sval)

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

svalback to summary
public String sval
ttypeback to summary
public int ttype

Constructor Detail

Tokenback to summary
public Token(int ttype, String sval)