org.herac.tuxguitar.io.gp
Class GP5InputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.herac.tuxguitar.io.gp.GP5InputStream
All Implemented Interfaces:
java.io.Closeable

public class GP5InputStream
extends java.io.InputStream


Constructor Summary
GP5InputStream(java.io.InputStream inputStream)
           
GP5InputStream(java.lang.String fileName)
           
 
Method Summary
 void close()
           
 boolean isSupportedVersion()
           
static boolean isSupportedVersion(java.lang.String version)
           
 int read()
           
 Song readSong()
           
 void readTremoloPicking(NoteEffect effect)
           
 
Methods inherited from class java.io.InputStream
available, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GP5InputStream

public GP5InputStream(java.io.InputStream inputStream)

GP5InputStream

public GP5InputStream(java.lang.String fileName)
               throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException
Method Detail

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.InputStream
Throws:
java.io.IOException

read

public int read()
         throws java.io.IOException
Specified by:
read in class java.io.InputStream
Throws:
java.io.IOException

isSupportedVersion

public static boolean isSupportedVersion(java.lang.String version)

isSupportedVersion

public boolean isSupportedVersion()

readSong

public Song readSong()
              throws java.io.IOException,
                     GPFormatException
Throws:
java.io.IOException
GPFormatException

readTremoloPicking

public void readTremoloPicking(NoteEffect effect)
                        throws java.io.IOException
Throws:
java.io.IOException