com.jakewharton
Class DiskLruCache.Snapshot

java.lang.Object
  extended by com.jakewharton.DiskLruCache.Snapshot
All Implemented Interfaces:
Closeable
Enclosing class:
DiskLruCache

public static final class DiskLruCache.Snapshot
extends Object
implements Closeable

A snapshot of the values for an entry.


Method Summary
 void close()
           
 InputStream getInputStream(int index)
          Returns the unbuffered stream with the value for index.
 String getString(int index)
          Returns the string value for index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInputStream

public InputStream getInputStream(int index)
Returns the unbuffered stream with the value for index.


getString

public String getString(int index)
                 throws IOException
Returns the string value for index.

Throws:
IOException

close

public void close()
Specified by:
close in interface Closeable


Copyright © 2012 Jake Wharton. All Rights Reserved.