|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.util.JCFormatParserUtil
This is a utility class made up of static methods useful for parsing data for component data sources. It is not intended for general public consumption, but it must be a public class in order to be accessible by other JClass packages.
Field Summary | |
static char |
QUOTE
What JClass data soruces recognize as a quote character. |
Constructor Summary | |
JCFormatParserUtil()
|
Method Summary | |
static void |
displayErrorMessage(StreamTokenizer tokenizer,
String strError)
Displays a tokenizer-related error message. |
static Object |
getNextToken(StreamTokenizer tokenizer)
Returns the next token from a stream tokenizer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final char QUOTE
Constructor Detail |
public JCFormatParserUtil()
Method Detail |
public static Object getNextToken(StreamTokenizer tokenizer) throws IOException
tokenizer
- active StreamTokenizer
from which to extract
and parse the next token
IOException
public static void displayErrorMessage(StreamTokenizer tokenizer, String strError)
Uses the provided tokenizer to display line numbers and token in an error message using the following format:
Error reading data: line NNN: <strError>:<token>Where
strError
is the String passed in as a parameter and
token is the current token in the tokenizer.
tokenizer
- active StreamTokenizer
, preferably the
one that has encountered some kind of errorstrError
- String to embed into the error message,
as shown above
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |