org.niffty
Class NIFFInfo

java.lang.Object
  |
  +--org.niffty.NIFFInfo

public class NIFFInfo
extends java.lang.Object

A NIFFInfo has a version string, writing program type, standard units, absolute units, and MIDI ticks per quarter.


Field Summary
static int CENTIMETERS
           
static int EDUCATIONAL_PROGRAM
           
static int ENGRAVING_PROGRAM
           
static int INCHES
           
static int MIDI_INTERPRETER
           
static int NONE
           
static int OTHER
           
static int POINTS
           
static int RESEARCH_PROGRAM
           
static int SCANNING_PROGRAM
           
static int SEQUENCER
           
 
Constructor Summary
NIFFInfo(java.lang.String version, int writingProgramType, int standardUnits, int absoluteUnits, int midiTicksPerQuarter)
          Creates a new NIFFInfo with the given values.
 
Method Summary
 int getAbsoluteUnits()
          Returns the absolute units, or -1 for none.
 int getMidiTicksPerQuarter()
          Returns the MIDI ticks per quarter, or -1 for none.
 int getStandardUnits()
          Returns the standard units, which is NONE, INCHES, CENTIMETERS or POINTS.
 java.lang.String getVersion()
          Returns the version which is a string of 8 characters.
 int getWritingProgramType()
          Returns the writing program type, which is OTHER, ENGRAVING_PROGRAM, SCANNING_PROGRAM, MIDI_INTERPRETER, SEQUENCER, RESEARCH_PROGRAM, or EDUCATIONAL_PROGRAM.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

OTHER

public static final int OTHER
See Also:
Constant Field Values

ENGRAVING_PROGRAM

public static final int ENGRAVING_PROGRAM
See Also:
Constant Field Values

SCANNING_PROGRAM

public static final int SCANNING_PROGRAM
See Also:
Constant Field Values

MIDI_INTERPRETER

public static final int MIDI_INTERPRETER
See Also:
Constant Field Values

SEQUENCER

public static final int SEQUENCER
See Also:
Constant Field Values

RESEARCH_PROGRAM

public static final int RESEARCH_PROGRAM
See Also:
Constant Field Values

EDUCATIONAL_PROGRAM

public static final int EDUCATIONAL_PROGRAM
See Also:
Constant Field Values

NONE

public static final int NONE
See Also:
Constant Field Values

INCHES

public static final int INCHES
See Also:
Constant Field Values

CENTIMETERS

public static final int CENTIMETERS
See Also:
Constant Field Values

POINTS

public static final int POINTS
See Also:
Constant Field Values
Constructor Detail

NIFFInfo

public NIFFInfo(java.lang.String version,
                int writingProgramType,
                int standardUnits,
                int absoluteUnits,
                int midiTicksPerQuarter)
Creates a new NIFFInfo with the given values.

Method Detail

getVersion

public java.lang.String getVersion()
Returns the version which is a string of 8 characters. Because the string length is always8 characters, some of the characters at the end of the string may be zeroes.


getWritingProgramType

public int getWritingProgramType()
Returns the writing program type, which is OTHER, ENGRAVING_PROGRAM, SCANNING_PROGRAM, MIDI_INTERPRETER, SEQUENCER, RESEARCH_PROGRAM, or EDUCATIONAL_PROGRAM.


getStandardUnits

public int getStandardUnits()
Returns the standard units, which is NONE, INCHES, CENTIMETERS or POINTS.


getAbsoluteUnits

public int getAbsoluteUnits()
Returns the absolute units, or -1 for none.


getMidiTicksPerQuarter

public int getMidiTicksPerQuarter()
Returns the MIDI ticks per quarter, or -1 for none.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object