abc4j API Specification

abc.parser
Class AsynchronousTuneParser

java.lang.Object
  extended by abc.parser.AbcParserAbstract
      extended by abc.parser.TuneParser
          extended by abc.parser.AsynchronousTuneParser

public class AsynchronousTuneParser
extends TuneParser

A parser that parses abc gammar into its own thread context.


Constructor Summary
AsynchronousTuneParser()
          Constructs a new tune parser.
AsynchronousTuneParser(boolean isQueueManagementEnabled)
           
 
Method Summary
 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 superParse(java.io.Reader r)
           
 void superParseHeader(java.io.Reader r)
           
 
Methods inherited from class abc.parser.TuneParser
addListener, removeListener
 
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

AsynchronousTuneParser

public AsynchronousTuneParser()
Constructs a new tune parser.


AsynchronousTuneParser

public AsynchronousTuneParser(boolean isQueueManagementEnabled)
Method Detail

parse

public Tune parse(java.lang.String tune)
Parse the given string and creates a Tune object as parsing result.

Overrides:
parse in class TuneParser
Parameters:
tune - The abc tune, as a String, to be parsed.
Returns:
An object representation of the abc notation string.

parse

public Tune parse(java.io.Reader charStream)
Description copied from class: TuneParser
Parses the specified stream in ABC notation.

Overrides:
parse in class TuneParser
Parameters:
charStream - Tune stream in ABC notation.
Returns:
A tune representing the ABC notation stream.

parseHeader

public Tune parseHeader(java.lang.String tune)
Description copied from class: TuneParser
Parses the header of the specified tune notation.

Overrides:
parseHeader in class TuneParser
Parameters:
tune - A tune notation in ABC.
Returns:
A tune representing the ABC notation with header values only.

parseHeader

public Tune parseHeader(java.io.Reader charStream)
Description copied from class: TuneParser
Parse the given string and creates a Tune object with no music as parsing result. This purpose of this method method is to provide a faster parsing when just abc header fields are needed.

Overrides:
parseHeader in class TuneParser
Parameters:
charStream - The stream to be parsed.
Returns:
An object representation with no score of the abc notation string.

superParse

public void superParse(java.io.Reader r)

superParseHeader

public void superParseHeader(java.io.Reader r)

abc4j API Specification

Submit a bug or feature