|
abc4j API Specification | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectabc.parser.AbcParserAbstract
abc.parser.TuneParser
public class TuneParser
A convenient class to ease the parsing of ONE tune. The result of the parsing is directly returned as a Tune object synchronously. You don't have to attach yourself as a listener or whatever to get the parsing result.
| Constructor Summary | |
|---|---|
TuneParser()
Constructs a new tune parser. |
|
| Method Summary | |
|---|---|
void |
addListener(TuneParserListenerInterface listener)
Adds a listener to catch events thrwon by the parser durin tune parsing. |
Tune |
parse(java.io.Reader charStream)
Parses the specified stream in ABC notation. |
Tune |
parse(java.lang.String tune)
Parse the given string and creates a Tune object as parsing result. |
Tune |
parseHeader(java.io.Reader charStream)
Parse the given string and creates a Tune object with no music as parsing result. |
Tune |
parseHeader(java.lang.String tune)
Parses the header of the specified tune notation. |
void |
removeListener(TuneParserListenerInterface listener)
Removes a listener from this parser. |
| Methods inherited from class abc.parser.AbcParserAbstract |
|---|
getScanner |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TuneParser()
| Method Detail |
|---|
public Tune parse(java.lang.String tune)
tune - The abc tune, as a String, to be parsed.
public Tune parse(java.io.Reader charStream)
charStream - Tune stream in ABC notation.
public Tune parseHeader(java.lang.String tune)
tune - A tune notation in ABC.
public Tune parseHeader(java.io.Reader charStream)
charStream - The stream to be parsed.
public void addListener(TuneParserListenerInterface listener)
addListener in class AbcParserAbstractlistener - Object that implements the TuneParserListenerInterface.removeListener(abc.parser.TuneParserListenerInterface)public void removeListener(TuneParserListenerInterface listener)
removeListener in class AbcParserAbstractlistener - The listener to be removed.addListener(abc.parser.TuneParserListenerInterface)
|
abc4j API Specification | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||