~teemu-heinamaki/ubuntu/maverick/tuxguitar/merge-from-debian

« back to all changes in this revision

Viewing changes to TuxGuitar-converter/src/org/herac/tuxguitar/gui/tools/custom/converter/TGConverter.java

  • Committer: Bazaar Package Importer
  • Author(s): Philippe Coval
  • Date: 2009-04-25 19:49:27 UTC
  • mfrom: (1.1.3 upstream) (2.1.7 jaunty)
  • Revision ID: james.westby@ubuntu.com-20090425194927-pblqed0zxp0pmyeq
Tags: 1.1-1
* New Upstream Release (Closes: #489859) (LP: #366476)
* Merged patch : tuxguitar_1.0.dak-1ubuntu1.patch
* debian/README.txt
  - suggests to install tuxguitar-jsa

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
package org.herac.tuxguitar.gui.tools.custom.converter;
2
2
 
 
3
import java.io.BufferedInputStream;
 
4
import java.io.BufferedOutputStream;
3
5
import java.io.File;
4
6
import java.io.FileInputStream;
5
7
import java.io.FileNotFoundException;
6
8
import java.io.FileOutputStream;
 
9
import java.io.InputStream;
7
10
import java.util.Iterator;
8
11
 
9
12
import org.herac.tuxguitar.io.base.TGFileFormatException;
71
74
                                        else {
72
75
                                                songExporter.configure(true);
73
76
                                                try {
74
 
                                                        songExporter.exportSong(new FileOutputStream(convertFileName), manager.getSong());
 
77
                                                        songExporter.exportSong(new BufferedOutputStream(new FileOutputStream(convertFileName)), manager.getSong());
75
78
                                                } catch (FileNotFoundException ex) {
76
79
                                                        this.getListener().notifyFileResult(convertFileName,FILE_COULDNT_WRITE);
77
80
                                                }
164
167
                        try {
165
168
                                currentImporter.configure(true);
166
169
                                if (isSupportedExtension(filename,currentImporter)) {
167
 
                                        FileInputStream input = new FileInputStream(filename);
 
170
                                        InputStream input = new BufferedInputStream(new FileInputStream(filename));
168
171
                                        return currentImporter.importSong(factory, input);
169
172
                                }
170
173
                        } catch (Throwable throwable) {