auditory.described
Class ScoreFactory

java.lang.Object
  extended by auditory.described.ScoreFactory

public class ScoreFactory
extends java.lang.Object

A factory that creates Score objects


Constructor Summary
ScoreFactory()
          Default Constructor
ScoreFactory(ResourceFinder finder)
          Explicit Value Constructor
 
Method Summary
 Score createScore(java.io.InputStream is)
          Create a Score object from a BufferedReader that is reading a stream containing a string representation
 Score createScore(java.lang.String filename)
          Create a Score object from a file containing a string representation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScoreFactory

public ScoreFactory()
Default Constructor


ScoreFactory

public ScoreFactory(ResourceFinder finder)
Explicit Value Constructor

Parameters:
finder - The ResourceFinder to used (if needed)
Method Detail

createScore

public Score createScore(java.io.InputStream is)
                  throws java.io.IOException,
                         javax.sound.midi.MidiUnavailableException
Create a Score object from a BufferedReader that is reading a stream containing a string representation

Parameters:
is - The InputStream to read from
Throws:
java.io.IOException
javax.sound.midi.MidiUnavailableException

createScore

public Score createScore(java.lang.String filename)
                  throws java.io.IOException,
                         javax.sound.midi.MidiUnavailableException
Create a Score object from a file containing a string representation

Parameters:
filename - The name of the file
Throws:
java.io.IOException
javax.sound.midi.MidiUnavailableException


Design and Implementation of Multimedia Software, Jones and Bartlett Publishers