Package org.wmn4j.io
Interface ScoreReader
- All Superinterfaces:
AutoCloseable
,Closeable
- All Known Subinterfaces:
MusicXmlReader
Represents a reader for music notation files. The only supported file type is MusicXML.
ScoreReader implementations are expected to be single use: for reading separate scores, separate instances need to be used. Implementations of this interface are not guaranteed to be thread-safe.
-
Method Summary
Modifier and TypeMethodDescriptionReturns a score with the contents of the music notation file defined by the path set in this reader.Returns a score builder with the contents of the music notation file defined by the path set in this reader.
-
Method Details
-
readScore
Returns a score with the contents of the music notation file defined by the path set in this reader.- Returns:
- aa score with the contents of the music notation file defined by the path set in this reader
- Throws:
IOException
- if the file is not found or reading the file failsParsingFailureException
- if the file cannot be parsed
-
readScoreBuilder
Returns a score builder with the contents of the music notation file defined by the path set in this reader.- Returns:
- a score builder with the contents of the music notation file defined by the path set in this reader
- Throws:
IOException
- if the file is not found or reading the file failsParsingFailureException
- if the file cannot be parsed
-