Interface PartUnmarshaller
- All Known Implementing Classes:
PackagePropertiesUnmarshaller
public interface PartUnmarshaller
Classes implementing this interface are considered as part unmarshaller. A part
unmarshaller is responsible to unmarshall a part in order to load it from a
package.
-
Method Summary
Modifier and TypeMethodDescriptionunmarshall(UnmarshallContext context, InputStream in) Save the content of the package in the stream
-
Method Details
-
unmarshall
PackagePart unmarshall(UnmarshallContext context, InputStream in) throws InvalidFormatException, IOException Save the content of the package in the stream- Parameters:
in- The input stream from which the part will be read.- Returns:
- The part freshly read from the input stream.
- Throws:
InvalidFormatException- If the data can not be interpreted correctlyIOException- if reading from the stream fails
-