~ubuntu-branches/ubuntu/oneiric/tuxguitar/oneiric

« back to all changes in this revision

Viewing changes to TuxGuitar-musicxml/src/org/herac/tuxguitar/io/musicxml/MusicXMLSongExporter.java

  • Committer: Bazaar Package Importer
  • Author(s): Philippe Coval
  • Date: 2008-06-19 00:30:30 UTC
  • mfrom: (1.1.1 upstream) (2.1.3 hardy)
  • Revision ID: james.westby@ubuntu.com-20080619003030-agens2gvd5m4dacu
New upstream release (Closes: #481728) also (LP: #176979, #212207)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package org.herac.tuxguitar.io.musicxml;
 
2
 
 
3
import java.io.OutputStream;
 
4
 
 
5
import org.herac.tuxguitar.io.base.TGFileFormat;
 
6
import org.herac.tuxguitar.io.base.TGFileFormatException;
 
7
import org.herac.tuxguitar.io.base.TGSongExporter;
 
8
import org.herac.tuxguitar.song.models.TGSong;
 
9
 
 
10
public class MusicXMLSongExporter implements TGSongExporter{
 
11
        
 
12
        public String getExportName() {
 
13
                return "MusicXML";
 
14
        }
 
15
        
 
16
        public TGFileFormat getFileFormat() {
 
17
                return new TGFileFormat("MusicXML","*.xml");
 
18
        }
 
19
        
 
20
        public boolean configure(boolean setDefaults) {
 
21
                return true;
 
22
        }
 
23
        
 
24
        public void exportSong(OutputStream stream, TGSong song) throws TGFileFormatException {
 
25
                new MusicXMLWriter(stream).writeSong(song);
 
26
        }
 
27
}
 
 
b'\\ No newline at end of file'