Interface ISerializableInputStreamSupplier

  • All Superinterfaces:
    Serializable
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface ISerializableInputStreamSupplier
    extends Serializable
    A supplier of InputStream that is serializable. When the context requires that the instance is serialized and deserialized in a different JVM, you should not include a reference to a file on the local file system in the serialized state. Instead, use e.g. a byte array or a URL to a remote file.
    Since:
    8.2.0
    • Method Detail

      • open

        InputStream open()
                  throws IOException
        Opens the input stream. The caller is responsible for closing the stream.
        Returns:
        The input stream.
        Throws:
        IOException - If an I/O error occurs while obtaining the stream.