Merge "DropBoxManager.Entry implements Closeable" into gingerbread

This commit is contained in:
Brad Fitzpatrick
2010-10-08 12:59:30 -07:00
committed by Android (Google) Code Review
2 changed files with 4 additions and 1 deletions

View File

@ -125837,6 +125837,8 @@
deprecated="not deprecated" deprecated="not deprecated"
visibility="public" visibility="public"
> >
<implements name="java.io.Closeable">
</implements>
<implements name="android.os.Parcelable"> <implements name="android.os.Parcelable">
</implements> </implements>
<constructor name="DropBoxManager.Entry" <constructor name="DropBoxManager.Entry"

View File

@ -21,6 +21,7 @@ import android.util.Log;
import com.android.internal.os.IDropBoxManagerService; import com.android.internal.os.IDropBoxManagerService;
import java.io.ByteArrayInputStream; import java.io.ByteArrayInputStream;
import java.io.Closeable;
import java.io.File; import java.io.File;
import java.io.FileInputStream; import java.io.FileInputStream;
import java.io.IOException; import java.io.IOException;
@ -61,7 +62,7 @@ public class DropBoxManager {
* This may include a reference to a stream, so you must call * This may include a reference to a stream, so you must call
* {@link #close()} when you are done using it. * {@link #close()} when you are done using it.
*/ */
public static class Entry implements Parcelable { public static class Entry implements Parcelable, Closeable {
private final String mTag; private final String mTag;
private final long mTimeMillis; private final long mTimeMillis;