public final class DiskLruCache.Editor
extends java.lang.Object
| 限定符和类型 | 方法和说明 | 
|---|---|
| void | abort()Aborts this edit. | 
| void | abortUnlessCommitted() | 
| void | commit()Commits this edit so it is visible to readers. | 
| java.lang.String | getString(int index)Returns the last committed value as a string, or null if no value
 has been committed. | 
| java.io.InputStream | newInputStream(int index)Returns an unbuffered input stream to read the last committed value,
 or null if no value has been committed. | 
| java.io.OutputStream | newOutputStream(int index)Returns a new unbuffered output stream to write the value at
  index. | 
| void | set(int index,
   java.lang.String value)Sets the value at  indextovalue. | 
public java.io.InputStream newInputStream(int index)
                                   throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getString(int index)
                           throws java.io.IOException
java.io.IOExceptionpublic java.io.OutputStream newOutputStream(int index)
                                     throws java.io.IOException
index. If the underlying output stream encounters errors
 when writing to the filesystem, this edit will be aborted when
 commit() is called. The returned output stream does not throw
 IOExceptions.java.io.IOExceptionpublic void set(int index,
       java.lang.String value)
         throws java.io.IOException
index to value.java.io.IOExceptionpublic void commit()
            throws java.io.IOException
java.io.IOExceptionpublic void abort()
           throws java.io.IOException
java.io.IOExceptionpublic void abortUnlessCommitted()