edu.harvard.hul.ois.jhove.module.wave
Class InstrumentChunk
java.lang.Object
edu.harvard.hul.ois.jhove.module.iff.Chunk
edu.harvard.hul.ois.jhove.module.wave.InstrumentChunk
public class InstrumentChunk
- extends Chunk
Implementation of the WAVE Instrument Chunk, which
gives information about a MIDI instrument. Similar to
the Sample chunk or the AIFF Instrument chunk, but simpler
than either.
- Author:
- Gary McGath
Method Summary |
boolean |
readChunk(RepInfo info)
Reads a chunk and puts an Instrument property into
the RepInfo object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InstrumentChunk
public InstrumentChunk(ModuleBase module,
ChunkHeader hdr,
java.io.DataInputStream dstrm)
- Constructor.
- Parameters:
module
- The WaveModule under which this was calledhdr
- The header for this chunkdstrm
- The stream from which the WAVE data are being read
readChunk
public boolean readChunk(RepInfo info)
throws java.io.IOException
- Reads a chunk and puts an Instrument property into
the RepInfo object.
- Specified by:
readChunk
in class Chunk
- Parameters:
info
- RepInfo object to receive information
- Returns:
false
if the chunk is structurally
invalid, otherwise true
- Throws:
java.io.IOException