Xindice API
version 1.2m1

org.apache.xindice.util
Class FileCache

java.lang.Object
  extended byorg.apache.xindice.util.FileCache

public class FileCache
extends Object

FileCache caches the content of files in memory.

Version:
$Revision: 541508 $, $Date: 2007-05-24 21:54:12 -0400 (Thu, 24 May 2007) $

Constructor Summary
FileCache()
           
 
Method Summary
 byte[] getFile(File file)
           
 byte[] getFile(String name)
           
 boolean isInCache(File file)
           
 boolean isInCache(String name)
           
 boolean isModified(File file)
           
 boolean isModified(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileCache

public FileCache()
Method Detail

isInCache

public final boolean isInCache(File file)

isInCache

public final boolean isInCache(String name)

isModified

public final boolean isModified(String name)

isModified

public final boolean isModified(File file)

getFile

public final byte[] getFile(String name)
                     throws IOException
Throws:
IOException

getFile

public final byte[] getFile(File file)
                     throws IOException
Throws:
IOException

Xindice API
version 1.2m1

Copyright (c) 1999-2007 The Apache Software Foundation. All Rights Reserved.