|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dguitar.codecs.guitarPro.GPInputStream dguitar.codecs.guitarPro.version4.GP4InputStream
The class GP4InputStream allows to parse an InputStream containing a file encoded with the Guitar Pro 4 format.
Field Summary | |
private static java.lang.String[] |
supportedVersions
The versions this parser supports. |
Fields inherited from class dguitar.codecs.guitarPro.GPInputStream |
__fileName, __version |
Constructor Summary | |
GP4InputStream(GPInputStream gpIn)
Creates a new GP4InputStream by cloning an existing GPInputStream. |
|
GP4InputStream(java.io.InputStream in)
Creates a new GP4InputStream from an existing stream. |
Method Summary | |
private GPBeat |
readBeat()
Reads a Guitar Pro beat |
private GPBend |
readBend()
Reads a bend from the stream. |
private GPBendPoint |
readBendPoint()
Reads a bend point from the stream. |
private GPChordDiagram |
readChordDiagram()
|
private GPChordType |
readChordType()
|
private GPColor |
readColor()
Reads a Guitar Pro color object |
private GPEffectsOnBeat |
readEffectsOnBeat()
Reads effects on the current beat from the stream. |
private GPEffectsOnNote |
readEffectsOnNote()
Reads effects on the current note from the stream. |
private GPGraceNote |
readGraceNote()
The grace notes are stored in the file with 4 variables, written in the followingorder. |
private GPMarker |
readMarker()
Read a Guitar Pro marker |
private GPMeasure |
readMeasure(GPMeasure previous)
Reads a Guitar Pro measure |
private GPMeasureTrackPair |
readMeasureTrackPair()
Reads a measure track pair |
private GPMIDIChannel |
readMIDIChannel()
Reads a MIDI Channel from the stream. |
private GPMixTableChange |
readMixTableChange()
Reads a mix table change event from the stream. |
private GPNote |
readNote()
Reads a Guitar Pro note |
GPSong |
readPiece()
Reads a Piece from the stream. |
private GPChordNote |
readRoot()
|
private GPTonalityType |
readTonalityType(int numBytes)
|
private GPTrack |
readTrack()
Reads a Guitar Pro track |
static boolean |
supportedVersion(java.lang.String version)
This method checks if the String version if supported. |
static java.lang.String |
supportedVersions()
This methods returns a String with the supported versions separated by '\n'. |
Methods inherited from class dguitar.codecs.guitarPro.GPInputStream |
assertBytesEqualTo, close, dumpBytes, dumpInts, read, read, readBoolean, readByte, readDouble, readFloat, readInt, readLong, readObject, readStringByte, readStringByteMaxLengthPlusOne, readStringInteger, readStringIntegerPlusOne, readUnsignedByte, skip, supportedExtension |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String[] supportedVersions
Constructor Detail |
public GP4InputStream(java.io.InputStream in)
in
- the original stream.public GP4InputStream(GPInputStream gpIn)
gpIn
- the original GPInputStream.Method Detail |
public static boolean supportedVersion(java.lang.String version)
version
- the version described by a string.
public static java.lang.String supportedVersions()
Currently this is "FICHIER GUITAR PRO v4.00\nFICHIER GUITAR PRO v4.06\nFICHIER GUITAR PRO L4.06"
public GPSong readPiece() throws java.io.IOException, GPFormatException
java.io.IOException
GPFormatException
private GPBeat readBeat() throws java.io.IOException, GPFormatException
java.io.IOException
GPFormatException
private GPColor readColor() throws java.io.IOException
java.io.IOException
private GPMarker readMarker() throws java.io.IOException
java.io.IOException
private GPMeasure readMeasure(GPMeasure previous) throws java.io.IOException
previous
-
java.io.IOException
private GPMeasureTrackPair readMeasureTrackPair() throws java.io.IOException, GPFormatException
java.io.IOException
GPFormatException
private GPMIDIChannel readMIDIChannel() throws java.io.IOException
java.io.IOException
private GPNote readNote() throws java.io.IOException
java.io.IOException
private GPTrack readTrack() throws java.io.IOException
java.io.IOException
private GPChordType readChordType() throws java.io.IOException
java.io.IOException
private GPChordNote readRoot() throws java.io.IOException
java.io.IOException
private GPTonalityType readTonalityType(int numBytes) throws java.io.IOException
java.io.IOException
private GPChordDiagram readChordDiagram() throws java.io.IOException, GPFormatException
java.io.IOException
GPFormatException
private GPGraceNote readGraceNote() throws java.io.IOException
java.io.IOException
private GPBendPoint readBendPoint() throws java.io.IOException
java.io.IOException
private GPBend readBend() throws java.io.IOException
java.io.IOException
private GPEffectsOnNote readEffectsOnNote() throws java.io.IOException
java.io.IOException
private GPEffectsOnBeat readEffectsOnBeat() throws java.io.IOException
java.io.IOException
private GPMixTableChange readMixTableChange() throws java.io.IOException
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |