|
|||||||||||
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.version3.GP3InputStream
The class GP3InputStream allows to parse an InputStream containing a file encoded with the Guitar Pro 3 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 | |
GP3InputStream(GPInputStream gpIn)
Creates a new GP4InputStream by cloning an existing GPInputStream. |
|
GP3InputStream(java.io.InputStream in)
Creates a new GP3InputStream from an existing stream. |
Method Summary | |
private GPBeat |
readBeat()
Returns a beat read from a GP3 file. |
private GPBend |
readBend()
Reads a bend from the stream. |
private GPBendPoint |
readBendPoint()
Reads a bend point from the stream. |
private GPChordDiagram |
readChordDiagram()
Reads a chord diagram from the stream. |
private GPColor |
readColor()
Reads a color from the stream. |
private GPEffectsOnBeat |
readEffectsOnBeat(GP3EffectsOnBeat gp3effects)
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()
Reads a marker from the stream. |
private GPMeasure |
readMeasure(GPMeasure previous)
Reads a measure from the stream. |
private GPMeasureTrackPair |
readMeasureTrackPair()
Reads a pair of "measure-track". |
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 note (with possibly some effects on it) from the stream. |
GPSong |
readPiece()
Reads a GPSong from the stream. |
private GPTrack |
readTrack()
Reads a track from the stream. |
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 GP3InputStream(java.io.InputStream in)
in
- the original streampublic GP3InputStream(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()
public GPSong readPiece() throws java.io.IOException
java.io.IOException
private GPBeat readBeat() throws java.io.IOException
java.io.IOException
private GPBend readBend() throws java.io.IOException
java.io.IOException
private GPBendPoint readBendPoint() throws java.io.IOException
java.io.IOException
private GPChordDiagram readChordDiagram() throws java.io.IOException
java.io.IOException
private GPColor readColor() throws java.io.IOException
java.io.IOException
private GPEffectsOnBeat readEffectsOnBeat(GP3EffectsOnBeat gp3effects) throws java.io.IOException
java.io.IOException
private GPEffectsOnNote readEffectsOnNote() throws java.io.IOException
java.io.IOException
private GPGraceNote readGraceNote() 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
- the previous measure.
java.io.IOException
private GPMeasureTrackPair readMeasureTrackPair() throws java.io.IOException
java.io.IOException
private GPMIDIChannel readMIDIChannel() throws java.io.IOException
java.io.IOException
private GPMixTableChange readMixTableChange() 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
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |