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

« back to all changes in this revision

Viewing changes to TuxGuitar-ascii/src/org/herac/tuxguitar/io/ascii/ASCIISongExporter.java

  • Committer: Bazaar Package Importer
  • Author(s): Philippe Coval
  • Date: 2008-06-19 00:30:30 UTC
  • mto: (5.1.2 sid)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20080619003030-h719szrhsngou7c6
Tags: upstream-1.0
ImportĀ upstreamĀ versionĀ 1.0

Show diffs side-by-side

added added

removed removed

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