public class ScoreFactory
extends java.lang.Object
Constructor and Description |
---|
ScoreFactory()
Default Constructor.
|
ScoreFactory(ResourceFinder finder)
Explicit Value Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public ScoreFactory()
public ScoreFactory(ResourceFinder finder)
finder
- The ResourceFinder to used (if needed)public Score createScore(java.io.InputStream is) throws java.io.IOException, javax.sound.midi.MidiUnavailableException
is
- The InputStream to read fromjava.io.IOException
javax.sound.midi.MidiUnavailableException
public Score createScore(java.lang.String filename) throws java.io.IOException, javax.sound.midi.MidiUnavailableException
filename
- The name of the filejava.io.IOException
javax.sound.midi.MidiUnavailableException