com.facebook.internal
Class FileLruCache

java.lang.Object
  extended by com.facebook.internal.FileLruCache

public final class FileLruCache
extends Object

com.facebook.internal is solely for the use of other packages within the Facebook SDK for Android. Use of any of the classes in this package is unsupported, and they may be modified or removed without warning at any time.


Nested Class Summary
static class FileLruCache.Limits
           
 
Constructor Summary
FileLruCache(Context context, String tag, FileLruCache.Limits limits)
           
 
Method Summary
 void clearForTest()
           
 InputStream get(String key)
           
 InputStream get(String key, String contentTag)
           
 InputStream interceptAndPut(String key, InputStream input)
           
 OutputStream openPutStream(String key, String contentTag)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileLruCache

public FileLruCache(Context context,
                    String tag,
                    FileLruCache.Limits limits)
Method Detail

clearForTest

public void clearForTest()
                  throws IOException
Throws:
IOException

get

public InputStream get(String key)
                throws IOException
Throws:
IOException

get

public InputStream get(String key,
                       String contentTag)
                throws IOException
Throws:
IOException

openPutStream

public OutputStream openPutStream(String key,
                                  String contentTag)
                           throws IOException
Throws:
IOException

interceptAndPut

public InputStream interceptAndPut(String key,
                                   InputStream input)
                            throws IOException
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object