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 Detail

      • unmarshall

        PackagePart unmarshall​(UnmarshallContext context,
                               java.io.InputStream in)
                        throws InvalidFormatException,
                               java.io.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 correctly
        java.io.IOException - if reading from the stream fails