Class ParcelUnpacker
java.lang.Object
com.dsi.ant.plugins.utility.parcel.ParcelUnpacker
Helper class for unpacking objects from a parcel in a forward compatible way.
This is a companion class to
ParcelPacker
that allows the reading of objects that may
have more data in the parcel stream than the reader knows about.-
Constructor Summary
ConstructorsConstructorDescriptionParcelUnpacker
(android.os.Parcel p) Start unpacking a pack from the parcel stream. -
Method Summary
-
Constructor Details
-
ParcelUnpacker
public ParcelUnpacker(android.os.Parcel p) Start unpacking a pack from the parcel stream.ParcelPacker(Parcel)
MUST have been used to start a pack at the same position when creating the parcel.- Parameters:
p
- The parcel to unpack from.
-
-
Method Details
-
finish
public void finish()Finish unpacking the current pack. Sets the data position of the parcel to the first byte past the end of the pack.
-