Class FitFileCommon.FitFile
java.lang.Object
com.dsi.ant.plugins.antplus.common.FitFileCommon.FitFile
- All Implemented Interfaces:
android.os.Parcelable
- Enclosing class:
- FitFileCommon
Represents a FIT file.
-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic 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 -
Method Summary
Modifier and TypeMethodDescriptionint
short
Returns the file type of this FIT fileReturns 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 filevoid
writeToParcel
(android.os.Parcel dest, int flags)
-
Field Details
-
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
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 interfaceandroid.os.Parcelable
-
describeContents
public int describeContents()- Specified by:
describeContents
in interfaceandroid.os.Parcelable
-