1 package net.sf.openrocket.file.motor;
3 import java.io.IOException;
4 import java.io.InputStream;
7 import net.sf.openrocket.file.Loader;
8 import net.sf.openrocket.motor.Motor;
11 public interface MotorLoader extends Loader<Motor> {
14 * Load motors from the specified <code>InputStream</code>.
16 * @param stream the source of the motor definitions.
17 * @param filename the file name of the file, may be <code>null</code> if not
19 * @return a list of motors contained in the file.
20 * @throws IOException if an I/O exception occurs of the file format is invalid.
22 public List<Motor> load(InputStream stream, String filename) throws IOException;