abc.parser
Class AsynchronousTuneParser

java.lang.Object
  extended byabc.parser.AbcParserAbstract
      extended byabc.parser.TuneParser
          extended byabc.parser.AsynchronousTuneParser

public class AsynchronousTuneParser
extends TuneParser


Constructor Summary
AsynchronousTuneParser()
          Constructs a new tune parser.
AsynchronousTuneParser(boolean isQueueManagementEnabled)
           
 
Method Summary
 Tune parse(java.io.Reader charStream)
          Parses the abc stream and returns the tune corresponding to the 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 stream and creates a Tune object with no score as parsing result.
 Tune parseHeader(java.lang.String tune)
          Parses the tune notation and returns only header information.
 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 abc stream and returns the tune corresponding to the notation.

Overrides:
parse in class TuneParser
Parameters:
charStream - An abc stream.
Returns:
The tune corresponding to the given notation.

parseHeader

public Tune parseHeader(java.lang.String tune)
Description copied from class: TuneParser
Parses the tune notation and returns only header information.

Overrides:
parseHeader in class TuneParser
Parameters:
tune - A tune written using ABC notation.
Returns:
Header information corresponding to the given notation.

parseHeader

public Tune parseHeader(java.io.Reader charStream)
Description copied from class: TuneParser
Parse the given stream and creates a Tune object with no score 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 - A stream in abc Notation.
Returns:
An object representation with no score of the abc stream.

superParse

public void superParse(java.io.Reader r)

superParseHeader

public void superParseHeader(java.io.Reader r)