Interface ResourceHandler.Resource

All Known Subinterfaces:
WritableResourceHandler.WritableResource
All Known Implementing Classes:
BufferedResource, BufferedWritableResource, PathWritableResource, UrlResource
Enclosing interface:
ResourceHandler

public static interface ResourceHandler.Resource
Handle of content.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the InputStream stream of the resource, if exists, null otherwise.
  • Method Details

    • read

      InputStream read() throws IOException
      Returns the InputStream stream of the resource, if exists, null otherwise. The stream should be closed by caller, otherwise resource leaks might be introduced.
      Throws:
      IOException