Work in progress.
This commit is contained in:
13
src/net/woodyfolsom/cs6601/p2/SurveyReader.java
Normal file
13
src/net/woodyfolsom/cs6601/p2/SurveyReader.java
Normal file
@@ -0,0 +1,13 @@
|
||||
package net.woodyfolsom.cs6601.p2;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
import com.thoughtworks.xstream.XStream;
|
||||
|
||||
public class SurveyReader {
|
||||
private static XStream xstream = XStreamFactory.getInstance();
|
||||
|
||||
public static Survey readSurvey(File surveyFile) {
|
||||
return (Survey) xstream.fromXML(surveyFile);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user