Parcelable
interface), and references to live IBinder
objects that will result in the other side receiving a proxy IBinder connected with the original IBinder in the Parcel.Parcelable
API for placing arbitrary objects into a Parcel) is designed as a high-performance IPC transport. As such, it is not appropriate to place any Parcel data in to persistent storage: changes in the underlying implementation of any of the data in the Parcel can render older data unreadable.Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Read and return a new ArrayList containing IBinder objects from the parcel that was written with writeBinderList(List at the current dataPosition(). | |||||||||||
Read and return a byte[] object from the parcel. | |||||||||||
Read and return a new ArrayList containing String objects from the parcel that was written with writeStringList(List at the current dataPosition(). | |||||||||||
Read and return a new array containing a particular object type from the parcel at the current dataPosition(). | |||||||||||
Read and return a new ArrayList containing a particular object type from the parcel that was written with writeTypedList(List at the current dataPosition(). | |||||||||||
Returns the amount of data remaining to be read from the parcel. | |||||||||||
Returns the total amount of space in the parcel. | |||||||||||
Returns the current position in the parcel data. | |||||||||||
Returns the total amount of data contained in the parcel. | |||||||||||
Report whether the parcel contains any marshalled file descriptors. | |||||||||||
Returns the raw bytes of the parcel. | |||||||||||
Retrieve a new Parcel object from the pool. | |||||||||||
Read and return a new Object array from the parcel at the current dataPosition(). | |||||||||||
Read and return a new ArrayList object from the parcel at the current dataPosition(). | |||||||||||
Read into the given List items IBinder objects that were written with writeBinderList(List at the current dataPosition(). | |||||||||||
Read and return a new Bundle object from the parcel at the current dataPosition(), using the given class loader to initialize the class loader of the Bundle for later retrieval of Parcelable objects. | |||||||||||
Read and return a new Bundle object from the parcel at the current dataPosition(). | |||||||||||
Read a byte value from the parcel at the current dataPosition(). | |||||||||||
Read a byte[] object from the parcel and copy it into the given byte array. | |||||||||||
Read a double precision floating point value from the parcel at the current dataPosition(). | |||||||||||
Throw an exception with the given message. | |||||||||||
Special function for reading an exception result from the header of a parcel, to be used after receiving the result of a transaction. | |||||||||||
Read a FileDescriptor from the parcel at the current dataPosition(). | |||||||||||
Read a floating point value from the parcel at the current dataPosition(). | |||||||||||
Please use readBundle(ClassLoader) instead (whose data must have been written with writeBundle(Bundle) . | |||||||||||
Read an integer value from the parcel at the current dataPosition(). | |||||||||||
Read into an existing List object from the parcel at the current dataPosition(), using the given class loader to load any enclosed Parcelables. | |||||||||||
Read a long integer value from the parcel at the current dataPosition(). | |||||||||||
Please use readBundle(ClassLoader) instead (whose data must have been written with writeBundle(Bundle) . | |||||||||||
Read and return a new Parcelable from the parcel. | |||||||||||
Read and return a new Parcelable array from the parcel. | |||||||||||
Read and return a new Bundle object from the parcel at the current dataPosition(), using the given class loader to initialize the class loader of the Bundle for later retrieval of Parcelable objects. | |||||||||||
Read and return a new Bundle object from the parcel at the current dataPosition(). | |||||||||||
Read and return a new Serializable object from the parcel. | |||||||||||
Read a Size from the parcel at the current dataPosition(). | |||||||||||
Read a SizeF from the parcel at the current dataPosition(). | |||||||||||
Read and return a new SparseArray object from the parcel at the current dataPosition(). | |||||||||||
Read and return a new SparseBooleanArray object from the parcel at the current dataPosition(). | |||||||||||
Read a string value from the parcel at the current dataPosition(). | |||||||||||
Read into the given List items String objects that were written with writeStringList(List at the current dataPosition(). | |||||||||||
Read an object from the parcel at the current dataPosition(). | |||||||||||
Read into the given List items containing a particular object type that were written with writeTypedList(List at the current dataPosition(). | |||||||||||
Read a typed object from a parcel. | |||||||||||
Put a Parcel object back into the pool. | |||||||||||
Change the capacity (current available space) of the parcel. | |||||||||||
Move the current read/write position in the parcel. | |||||||||||
Change the amount of data in the parcel. | |||||||||||
Set the bytes in data to be the raw bytes of this Parcel. | |||||||||||
Flatten an Object array into the parcel at the current dataPosition(), growing dataCapacity() if needed. | |||||||||||
Flatten a List containing IBinder objects into the parcel, at the current dataPosition() and growing dataCapacity() if needed. | |||||||||||
Flatten a Bundle into the parcel at the current dataPosition(), growing dataCapacity() if needed. | |||||||||||
Write a byte value into the parcel at the current dataPosition(), growing dataCapacity() if needed. | |||||||||||
Write a byte array into the parcel at the current dataPosition() , growing dataCapacity() if needed. | |||||||||||
Write a byte array into the parcel at the current dataPosition() , growing dataCapacity() if needed. | |||||||||||
Write a double precision floating point value into the parcel at the current dataPosition(), growing dataCapacity() if needed. | |||||||||||
Special function for writing an exception result at the header of a parcel, to be used when returning an exception from a transaction. | |||||||||||
Write a FileDescriptor into the parcel at the current dataPosition(), growing dataCapacity() if needed. | |||||||||||
Write a floating point value into the parcel at the current dataPosition(), growing dataCapacity() if needed. | |||||||||||
Write an integer value into the parcel at the current dataPosition(), growing dataCapacity() if needed. | |||||||||||
Store or read an IBinder interface token in the parcel at the current dataPosition() . | |||||||||||
Flatten a List into the parcel at the current dataPosition(), growing dataCapacity() if needed. | |||||||||||
Write a long integer value into the parcel at the current dataPosition(), growing dataCapacity() if needed. | |||||||||||
Please use writeBundle(Bundle) instead. | |||||||||||
Special function for writing information at the front of the Parcel indicating that no exception occurred. | |||||||||||
Flatten the name of the class of the Parcelable and its contents into the parcel. | |||||||||||
Write a heterogeneous array of Parcelable objects into the Parcel. | |||||||||||
Flatten a PersistableBundle into the parcel at the current dataPosition(), growing dataCapacity() if needed. | |||||||||||
Write a generic serializable object in to a Parcel. | |||||||||||
Flatten a Size into the parcel at the current dataPosition(), growing dataCapacity() if needed. | |||||||||||
Flatten a SizeF into the parcel at the current dataPosition(), growing dataCapacity() if needed. | |||||||||||
Flatten a generic SparseArray into the parcel at the current dataPosition(), growing dataCapacity() if needed. | |||||||||||
Write a string value into the parcel at the current dataPosition(), growing dataCapacity() if needed. | |||||||||||
Flatten a List containing String objects into the parcel, at the current dataPosition() and growing dataCapacity() if needed. | |||||||||||
Write an object into the parcel at the current dataPosition(), growing dataCapacity() if needed. | |||||||||||
Write an object into the parcel at the current dataPosition(), growing dataCapacity() if needed. | |||||||||||
Flatten a heterogeneous array containing a particular object type into the parcel, at the current dataPosition() and growing dataCapacity() if needed. | |||||||||||
Flatten a List containing a particular object type into the parcel, at the current dataPosition() and growing dataCapacity() if needed. | |||||||||||
Flatten a generic object in to a parcel. |
联系客服