Interface ContentSource

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 ContentSource
Opens a file's content from its start, as many times as it is read.
  • Method Summary

    Modifier and Type
    Method
    Description
    Opens the content.
  • Method Details

    • open

      InputStream open() throws IOException
      Opens the content.
      Returns:
      a stream at the start of the content, closed by the caller
      Throws:
      IOException - when the content can't be opened