edu.harvard.hul.ois.jhove.module.aiff
Class AnnotationChunk

java.lang.Object
  extended by edu.harvard.hul.ois.jhove.module.iff.Chunk
      extended by edu.harvard.hul.ois.jhove.module.aiff.TextChunk
          extended by edu.harvard.hul.ois.jhove.module.aiff.AnnotationChunk

public class AnnotationChunk
extends TextChunk

Implementation of the AIFF Annotation Chunk.

Author:
Gary McGath

Field Summary
 
Fields inherited from class edu.harvard.hul.ois.jhove.module.aiff.TextChunk
propName
 
Fields inherited from class edu.harvard.hul.ois.jhove.module.iff.Chunk
_dstream, _module, bytesLeft
 
Constructor Summary
AnnotationChunk(AiffModule module, ChunkHeader hdr, java.io.DataInputStream dstrm)
          Constructor.
 
Method Summary
 boolean readChunk(RepInfo info)
          Reads a chunk and adds an Annotation property to the module's list of annotations.
 
Methods inherited from class edu.harvard.hul.ois.jhove.module.aiff.TextChunk
readText
 
Methods inherited from class edu.harvard.hul.ois.jhove.module.iff.Chunk
byteBufString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationChunk

public AnnotationChunk(AiffModule module,
                       ChunkHeader hdr,
                       java.io.DataInputStream dstrm)
Constructor.

Parameters:
module - The AIFFModule under which this was called
hdr - The header for this chunk
dstrm - The stream from which the AIFF data are being read
Method Detail

readChunk

public boolean readChunk(RepInfo info)
                  throws java.io.IOException
Reads a chunk and adds an Annotation property to the module's list of annotations. There can be multiple Annotation Chunks, so we don't create a property here directly.

Overrides:
readChunk in class TextChunk
Parameters:
info - RepInfo object to receive information
Returns:
false if the chunk is structurally invalid, otherwise true
Throws:
java.io.IOException