abc4j API Specification

abc.xml
Class Abc2xml

java.lang.Object
  extended by abc.xml.Abc2xml

public class Abc2xml
extends java.lang.Object


Constructor Summary
Abc2xml()
           
 
Method Summary
static org.w3c.dom.Document createMusicXmlDOM(Tune tune)
          Creates a DOM representation (fullfilling musicXML dtd) of the specified tune.
static void writeAsMusicXML(org.w3c.dom.Node node, java.io.BufferedWriter writer)
          Writes the specified Node to the given writer.
static void writeAsMusicXML(Tune tune, java.io.File file)
          Writes the specified tune to the specified file as MusicXML.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Abc2xml

public Abc2xml()
Method Detail

writeAsMusicXML

public static void writeAsMusicXML(Tune tune,
                                   java.io.File file)
                            throws java.io.IOException
Writes the specified tune to the specified file as MusicXML.

Parameters:
file - A file.
tune - A tune.
Throws:
java.io.IOException - Thrown if the file cannot be created.

writeAsMusicXML

public static void writeAsMusicXML(org.w3c.dom.Node node,
                                   java.io.BufferedWriter writer)
                            throws java.io.IOException
Writes the specified Node to the given writer.

Parameters:
node - A DOM node.
writer - A stream writer.
Throws:
java.io.IOException - Thrown if the file cannot be created.

createMusicXmlDOM

public static org.w3c.dom.Document createMusicXmlDOM(Tune tune)
Creates a DOM representation (fullfilling musicXML dtd) of the specified tune.

Parameters:
tune - A tune.
Returns:
A DOM representation (fullfilling musicXML dtd) of the specified tune.

abc4j API Specification

Submit a bug or feature