java.lang.Object
de.grogra.mtg.MTGTokenizer
Tokenizer for lines read from MTG file.
- Since:
- 2011-11-24
- Author:
- Ong Yongzhi
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setCommentCharFound
(boolean comment) void
setLineString
(String lineString) static String[]
tokenizeEntityNames
(String entityNameString) Tokenizes Entity-Name strings in MTG file bodyString[]
Tokenizes member variable lineString.static String[]
tokenizeTopoRightClasses
(String rightClasses) Tokenizes 'Right' column strings in MTG file header-Description section
-
Constructor Details
-
MTGTokenizer
-
-
Method Details
-
setLineString
-
setCommentCharFound
public void setCommentCharFound(boolean comment) -
tokenizeLineString
Tokenizes member variable lineString. Tab characters are returned individually as tokens. Commented tokens (from a '#' character/token to up to a '\t' (tab) character/token are not returned.- Returns:
- String[] array of Strings representing tokens.
-
tokenizeTopoRightClasses
Tokenizes 'Right' column strings in MTG file header-Description section- Returns:
- String[] array of Strings representing class symbols. Null if no tokens.
-
tokenizeEntityNames
Tokenizes Entity-Name strings in MTG file body- Returns:
- String[] array of Strings representing nodes,edges,MTG notations. Null if no tokens.
-