Solution_ - the solution type, the class with the PlanningSolution annotationpublic class XStreamSolutionFileIO<Solution_> extends Object implements org.optaplanner.persistence.common.api.domain.solution.SolutionFileIO<Solution_>
XStream is configured to allow all permissions,
which can be exploited if the XML comes from an untrusted source.| Modifier and Type | Field and Description |
|---|---|
protected com.thoughtworks.xstream.XStream |
xStream |
| Constructor and Description |
|---|
XStreamSolutionFileIO(Class... xStreamAnnotatedClasses) |
| Modifier and Type | Method and Description |
|---|---|
String |
getInputFileExtension() |
com.thoughtworks.xstream.XStream |
getXStream() |
Solution_ |
read(File inputSolutionFile) |
void |
write(Solution_ solution,
File outputSolutionFile) |
public XStreamSolutionFileIO(Class... xStreamAnnotatedClasses)
public com.thoughtworks.xstream.XStream getXStream()
public String getInputFileExtension()
getInputFileExtension in interface org.optaplanner.persistence.common.api.domain.solution.SolutionFileIO<Solution_>public Solution_ read(File inputSolutionFile)
read in interface org.optaplanner.persistence.common.api.domain.solution.SolutionFileIO<Solution_>Copyright © 2006–2018 JBoss by Red Hat. All rights reserved.