org.herac.tuxguitar.io.gtp
Class GTPOutputStream

java.lang.Object
  extended by org.herac.tuxguitar.io.gtp.GTPOutputStream
Direct Known Subclasses:
GP3OutputStream, GP4OutputStream, GP5OutputStream

public abstract class GTPOutputStream
extends java.lang.Object


Constructor Summary
GTPOutputStream()
           
 
Method Summary
protected  void close()
           
protected  TGFactory getFactory()
           
 void init(TGFactory factory, java.io.OutputStream stream)
           
protected  void skipBytes(int count)
           
protected  void writeBoolean(boolean v)
           
protected  void writeByte(byte v)
           
protected  void writeBytes(byte[] v)
           
protected  void writeInt(int v)
           
protected  void writeString(char[] chars, int maximumLength)
           
protected  void writeStringByte(java.lang.String string, int size)
           
protected  void writeStringByteSizeOfInteger(java.lang.String string)
           
protected  void writeStringInteger(java.lang.String string)
           
protected  void writeUnsignedByte(int v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GTPOutputStream

public GTPOutputStream()
Method Detail

init

public void init(TGFactory factory,
                 java.io.OutputStream stream)

getFactory

protected TGFactory getFactory()

skipBytes

protected void skipBytes(int count)
                  throws java.io.IOException
Throws:
java.io.IOException

writeByte

protected void writeByte(byte v)
                  throws java.io.IOException
Throws:
java.io.IOException

writeUnsignedByte

protected void writeUnsignedByte(int v)
                          throws java.io.IOException
Throws:
java.io.IOException

writeBytes

protected void writeBytes(byte[] v)
                   throws java.io.IOException
Throws:
java.io.IOException

writeBoolean

protected void writeBoolean(boolean v)
                     throws java.io.IOException
Throws:
java.io.IOException

writeInt

protected void writeInt(int v)
                 throws java.io.IOException
Throws:
java.io.IOException

writeString

protected void writeString(char[] chars,
                           int maximumLength)
                    throws java.io.IOException
Throws:
java.io.IOException

writeStringInteger

protected void writeStringInteger(java.lang.String string)
                           throws java.io.IOException
Throws:
java.io.IOException

writeStringByte

protected void writeStringByte(java.lang.String string,
                               int size)
                        throws java.io.IOException
Throws:
java.io.IOException

writeStringByteSizeOfInteger

protected void writeStringByteSizeOfInteger(java.lang.String string)
                                     throws java.io.IOException
Throws:
java.io.IOException

close

protected void close()
              throws java.io.IOException
Throws:
java.io.IOException