001 package com.croftsoft.core.util.cache; 002 003 import java.io.*; 004 005 /********************************************************************* 006 * An object capable of making content accessible via an InputStream. 007 * 008 * <P> 009 * 010 * For example, a ContentAccessor might retrieve content from a 011 * website via a URL, a database or file storage, a remote object 012 * such as another cache, or even dynamically generate the content 013 * upon demand. 014 * 015 * <P> 016 * 017 * As yet another possibility, a ContentAccessor object 018 * may potentially attempt to access the content from several 019 * different sources sequentially until it is successful. 020 * 021 * @see 022 * URLContentAccessor 023 * 024 * @version 025 * 1999-04-24 026 * @author 027 * <a href="https://www.croftsoft.com/">David Wallace Croft</a> 028 *********************************************************************/ 029 030 public interface ContentAccessor 031 ////////////////////////////////////////////////////////////////////// 032 ////////////////////////////////////////////////////////////////////// 033 { 034 035 public InputStream getInputStream ( ) throws IOException; 036 037 ////////////////////////////////////////////////////////////////////// 038 ////////////////////////////////////////////////////////////////////// 039 }