org.herac.tuxguitar.io.gtp
Class GTPOutputStream

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

public abstract class GTPOutputStream
extends GTPFileFormat


Field Summary
 
Fields inherited from class org.herac.tuxguitar.io.gtp.GTPFileFormat
DEFAULT_TG_CHARSET, DEFAULT_VERSION_CHARSET
 
Constructor Summary
GTPOutputStream(GTPSettings settings)
           
 
Method Summary
protected  void close()
           
 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(byte[] bytes, int maximumLength)
           
protected  void writeStringByte(java.lang.String string, int size)
           
protected  void writeStringByte(java.lang.String string, int size, java.lang.String charset)
           
protected  void writeStringByteSizeOfInteger(java.lang.String string)
           
protected  void writeStringByteSizeOfInteger(java.lang.String string, java.lang.String charset)
           
protected  void writeStringInteger(java.lang.String string)
           
protected  void writeStringInteger(java.lang.String string, java.lang.String charset)
           
protected  void writeUnsignedByte(int v)
           
 
Methods inherited from class org.herac.tuxguitar.io.gtp.GTPFileFormat
getFactory, getSettings, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GTPOutputStream

public GTPOutputStream(GTPSettings settings)
Method Detail

init

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

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(byte[] bytes,
                           int maximumLength)
                    throws java.io.IOException
Throws:
java.io.IOException

writeStringInteger

protected void writeStringInteger(java.lang.String string,
                                  java.lang.String charset)
                           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,
                               java.lang.String charset)
                        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,
                                            java.lang.String charset)
                                     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