Interface Cache.StreamProvider

Enclosing interface:
Cache

public static interface Cache.StreamProvider
Interface used by the file caching system. Items wishing to participate in file caching will need to implement this interface. This interface gives the file cache a means to get hold of the contents that will be cached.
Since:
v2.13
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Produce the complete stream and write to the designated output stream.
  • Method Details

    • write

      void write(OutputStream out)
      Produce the complete stream and write to the designated output stream. Classes implementing this method should not close the output stream.
      Parameters:
      out - designated output stream.