create changelog entry
[debian/openrocket] / core / src / net / sf / openrocket / file / motor / MotorLoader.java
1 package net.sf.openrocket.file.motor;
2
3 import java.io.IOException;
4 import java.io.InputStream;
5 import java.util.List;
6
7 import net.sf.openrocket.file.Loader;
8 import net.sf.openrocket.motor.Motor;
9
10
11 public interface MotorLoader extends Loader<Motor> {
12         
13         /**
14          * Load motors from the specified <code>InputStream</code>.
15          * 
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 
18          *                                              applicable.
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.
21          */
22         public List<Motor> load(InputStream stream, String filename) throws IOException;
23         
24 }