|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.garmin.fit.Decode
public class Decode
Decodes binary to java objects.
Nested Class Summary | |
---|---|
static class |
Decode.RETURN
|
Constructor Summary | |
---|---|
Decode()
|
Method Summary | |
---|---|
void |
addListener(DeveloperFieldDescriptionListener listener)
|
void |
addListener(MesgDefinitionListener mesgDefinitionListener)
|
void |
addListener(MesgListener mesgListener)
|
boolean |
bytesAvailable(java.io.InputStream input)
|
boolean |
checkFileIntegrity(java.io.InputStream in)
Reads the FIT binary file header and crc to check compatibility and integrity. |
protected void |
expandComponents(Field containingField,
java.util.ArrayList<FieldComponent> componentList)
|
boolean |
getInvalidFileDataSize()
Gets the property that indicates that the file has an invalid data size |
Mesg |
getMesg()
|
void |
incompleteStream()
Override the default read behaviour allowing decode of partial streams. |
boolean |
isFileFit(java.io.InputStream in)
Reads the header to determine if the file is FIT. |
void |
nextFile()
|
void |
pause()
|
Decode.RETURN |
read(byte data)
|
boolean |
read(java.io.InputStream in)
|
boolean |
read(java.io.InputStream in,
MesgListener mesgListener)
Reads a FIT binary file. |
boolean |
read(java.io.InputStream in,
MesgListener mesgListener,
MesgDefinitionListener mesgDefListener)
Reads a FIT binary file. |
boolean |
resume()
Resumes reading the file. |
void |
setInvalidFileDataSize(boolean value)
Sets the Invalid Data size Property (so that it can be reset) |
void |
setSystemTimeOffset(long systemTimeOffset)
|
void |
showInvalidValues()
Allow for invalid values in messages. |
void |
skipHeader()
Override the default read behaviour by skipping header decode. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Decode()
Method Detail |
---|
public boolean getInvalidFileDataSize()
public void setInvalidFileDataSize(boolean value)
value
- boolean value to setpublic void nextFile()
public void addListener(MesgListener mesgListener)
public void addListener(MesgDefinitionListener mesgDefinitionListener)
public void addListener(DeveloperFieldDescriptionListener listener)
public void setSystemTimeOffset(long systemTimeOffset)
public void skipHeader()
public void incompleteStream()
public void showInvalidValues()
public boolean read(java.io.InputStream in, MesgListener mesgListener, MesgDefinitionListener mesgDefListener)
in
- file input streammesgListener
- message listenermesgDefListener
- message definition listener
public boolean read(java.io.InputStream in, MesgListener mesgListener)
in
- file input streammesgListener
- message listener
public boolean read(java.io.InputStream in)
public void pause()
public boolean resume()
public boolean isFileFit(java.io.InputStream in)
in
- file input stream
public boolean checkFileIntegrity(java.io.InputStream in)
in
- file input stream
public Decode.RETURN read(byte data)
protected void expandComponents(Field containingField, java.util.ArrayList<FieldComponent> componentList)
public Mesg getMesg()
public boolean bytesAvailable(java.io.InputStream input) throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |