Class ParcelUnpacker

java.lang.Object
com.dsi.ant.channel.ipc.utility.ParcelUnpacker

public class ParcelUnpacker extends Object
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.
Since:
4.7.2
  • 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.
      Since:
      4.7.2
  • 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.
      Since:
      4.7.2