Package org.audiveris.proxymusic.mxl
Class Mxl.Input
java.lang.Object
org.audiveris.proxymusic.mxl.Mxl.Input
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
- Mxl
Class
Input allows to read a .mxl file.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the underlying zip file.Report the zip entry related to the provided name.getInputStream(ZipEntry zipEntry) Report the input stream related to the provided zip entry.Report the sequence of root files in the container.
-
Constructor Details
-
Input
public Input(File file) throws FileNotFoundException, IOException, Mxl.MxlException, javax.xml.bind.JAXBException Create anInputobject on a provided file.- Parameters:
file- the provided file- Throws:
FileNotFoundExceptionIOExceptionMxl.MxlExceptionjavax.xml.bind.JAXBException
-
-
Method Details
-
getEntry
Report the zip entry related to the provided name.- Parameters:
entryName- the provided entry name- Returns:
- the entry in the .mxl file
- Throws:
IOException
-
getInputStream
Report the input stream related to the provided zip entry.- Parameters:
zipEntry- the provided zip entry- Returns:
- the corresponding input stream
- Throws:
IOException
-
getRootFiles
Report the sequence of root files in the container.- Returns:
- the (un-mutable) list of RootFile instances
-
close
Close the underlying zip file.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException- propagated fromZipFile.close()
-