Class FitFileCommon.FitFile

java.lang.Object
com.dsi.ant.plugins.antplus.common.FitFileCommon.FitFile
All Implemented Interfaces:
android.os.Parcelable
Enclosing class:
FitFileCommon

public static class FitFileCommon.FitFile extends Object implements android.os.Parcelable
Represents a FIT file.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface android.os.Parcelable

    android.os.Parcelable.ClassLoaderCreator<T extends Object>, android.os.Parcelable.Creator<T extends Object>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final android.os.Parcelable.Creator<FitFileCommon.FitFile>
    CREATOR is used by Android parceling system.

    Fields inherited from interface android.os.Parcelable

    CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
  • Constructor Summary

    Constructors
    Constructor
    Description
    FitFile(byte[] fitFileBytes)
    Creates a FIT file from the raw FIT file bytes.
    FitFile(android.os.Parcel src)
    Creates a FIT file from a Parcel
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    short
    Returns the file type of this FIT file
    Returns an InputStream representing the bytes composing the binary FIT file.
    byte[]
    Returns the raw array of bytes composing the binary FIT file.
    void
    setFileType(short fitFileType)
    Configures the file type of this FIT file
    void
    writeToParcel(android.os.Parcel dest, int flags)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • CREATOR

      public static final android.os.Parcelable.Creator<FitFileCommon.FitFile> CREATOR
      CREATOR is used by Android parceling system.
  • Constructor Details

    • FitFile

      public FitFile(byte[] fitFileBytes)
      Creates a FIT file from the raw FIT file bytes.
      Parameters:
      fitFileBytes - The raw array of bytes composing the binary FIT file.
    • FitFile

      public FitFile(android.os.Parcel src)
      Creates a FIT file from a Parcel
      Parameters:
      src - Parcel
  • Method Details

    • getRawBytes

      public byte[] getRawBytes()
      Returns the raw array of bytes composing the binary FIT file.
      Returns:
      The raw array of bytes composing the binary FIT file.
    • setFileType

      public void setFileType(short fitFileType)
      Configures the file type of this FIT file
      Parameters:
      fitFileType - FIT File type
    • getFileType

      public short getFileType()
      Returns the file type of this FIT file
      Returns:
      FIT file type
    • getInputStream

      public InputStream getInputStream()
      Returns an InputStream representing the bytes composing the binary FIT file.
      Returns:
      An InputStream representing the bytes composing the binary FIT file.
    • writeToParcel

      public void writeToParcel(android.os.Parcel dest, int flags)
      Specified by:
      writeToParcel in interface android.os.Parcelable
    • describeContents

      public int describeContents()
      Specified by:
      describeContents in interface android.os.Parcelable