Package org.audiveris.proxymusic.mxl
Class Mxl.Output
java.lang.Object
org.audiveris.proxymusic.mxl.Mxl.Output
- Enclosing class:
- Mxl
Class
Output allows to write a .mxl file.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassAn OutputStream sub-classed in order to intercept closing. -
Constructor Summary
ConstructorsConstructorDescriptionCreate anOutputobject on a provided output file.Output(OutputStream out) Create anOutputobject on a provided output stream. -
Method Summary
Modifier and TypeMethodDescriptionInsert a new RootFile entry into this file.addFirstEntry(RootFile rootFile) Insert the provided RootFile as the FIRST entry.voidclose()Write the container and close the underlying output stream.Report the underlying Zip output stream.
-
Constructor Details
-
Output
Create anOutputobject on a provided output stream.- Parameters:
out- the provided output stream
-
Output
Create anOutputobject on a provided output file.- Parameters:
file- the file to write- Throws:
FileNotFoundException
-
-
Method Details
-
addEntry
Insert a new RootFile entry into this file. This populates the internal container and positions the stream output accordingly.- Parameters:
rootFile- the provided RootFile- Returns:
- the corresponding Zip entry
- Throws:
Mxl.MxlException
-
addFirstEntry
Insert the provided RootFile as the FIRST entry. This can be called at any time, to populate the internal container in first position, and position the stream output accordingly.- Parameters:
rootFile- the provided RootFile- Returns:
- the corresponding Zip entry
- Throws:
Mxl.MxlException
-
close
Write the container and close the underlying output stream.- Throws:
IOException
-
getOutputStream
Report the underlying Zip output stream.- Returns:
- the Zip output stream
-