Class ResolverDAO
java.lang.Object
org.fedoraproject.xmvn.tools.resolve.xml.ResolverDAO
Data Access Object for reading
Lists of ResolutionRequests from InputStreams and writing ResolutionResults to OutputStreams.- Author:
- Mikolaj Izdebski
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidmarshalResults(OutputStream os, List<org.fedoraproject.xmvn.resolver.ResolutionResult> results) Serializes entity into XML format, writing XML data to givenWriter.static List<org.fedoraproject.xmvn.resolver.ResolutionRequest>
-
Constructor Details
-
ResolverDAO
public ResolverDAO()
-
-
Method Details
-
unmarshalRequests
public static List<org.fedoraproject.xmvn.resolver.ResolutionRequest> unmarshalRequests(InputStream is) throws IOException, io.kojan.xml.XMLException - Parameters:
is- the source to read XML data from- Returns:
- deserialized list of resolution requests
- Throws:
IOException- in case I/O exception occurs when reading form the streamio.kojan.xml.XMLException- in case exception occurs during XML deserialization
-
marshalResults
public static void marshalResults(OutputStream os, List<org.fedoraproject.xmvn.resolver.ResolutionResult> results) throws IOException, io.kojan.xml.XMLException Serializes entity into XML format, writing XML data to givenWriter.- Parameters:
os- the sink to write XML data toresults- list of resolution requests to serialize- Throws:
IOException- in case I/O exception occurs when writing to the streamio.kojan.xml.XMLException- in case exception occurs during XML serialization
-