org.herac.tuxguitar.io.gp
Class GP3InputStream

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

public class GP3InputStream
extends java.io.InputStream


Constructor Summary
GP3InputStream(java.io.InputStream inputStream)
           
GP3InputStream(java.lang.String fileName)
           
 
Method Summary
 void close()
          Closes the stream.
 boolean isSupportedVersion()
           
static boolean isSupportedVersion(java.lang.String version)
           
 int read()
           
 Song readSong()
           
 
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

GP3InputStream

public GP3InputStream(java.io.InputStream inputStream)

GP3InputStream

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

close

public void close()
           throws java.io.IOException
Closes the stream.

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