java.lang.Object | |
↳ | android.os.DropBoxManager.Entry |
A single entry retrieved from the drop box.
This may include a reference to a stream, so you must call
close()
when you are done using it.
[Expand]
Inherited Constants
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
CREATOR |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Create a new empty Entry with no contents.
|
||||||||||
|
Create a new Entry with plain text contents.
|
||||||||||
|
Create a new Entry with byte array contents.
|
||||||||||
|
Create a new Entry with streaming data contents.
|
||||||||||
|
Create a new Entry with the contents read from a file.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Close the input stream associated with this entry.
|
||||||||||
|
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
|
||||||||||
|
|
||||||||||
|
|
||||||||||
|
|
||||||||||
|
|
||||||||||
|
|
||||||||||
|
Flatten this object in to a Parcel.
|
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
|||||||||||
From interface
android.os.Parcelable
|
|||||||||||
From interface
java.io.Closeable
|
|||||||||||
From interface
java.lang.AutoCloseable
|
Create a new empty Entry with no contents.
Create a new Entry with plain text contents.
Create a new Entry with byte array contents. The data array must not be modified after creating this entry.
Create a new Entry with streaming data contents. Takes ownership of the ParcelFileDescriptor.
Create a new Entry with the contents read from a file. The file will be read when the entry's contents are requested.
IOException |
---|
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
getInputStream()
.
IOException |
---|
maxBytes | of string to return (will truncate at this length). |
---|
Flatten this object in to a Parcel.
out | The Parcel in which the object should be written. |
---|---|
flags |
Additional flags about how the object should be written.
May be 0 or
PARCELABLE_WRITE_RETURN_VALUE
.
|