public class TomTomReader extends Object
Modifier and Type | Method and Description |
---|---|
static TomTomReader |
getInstance()
Get the one and only instance of this class
|
byte[] |
readRecord(InputStream in,
TtbinHeader header)
Read the next record data
|
Activity |
readTtbinFile(String fileName)
Reads the ttbin file and stores it in the Activity
|
Activity |
readTtbinFile(UsbFile file)
Reads the ttbin file as stored in the UsbFile passed
|
void |
setTrackSmoothing(boolean enabled,
float qFactor) |
public static TomTomReader getInstance()
public void setTrackSmoothing(boolean enabled, float qFactor)
public byte[] readRecord(InputStream in, TtbinHeader header) throws IOException
in
- Input stream to read fromheader
- Header informationIOException
- Error while reading from the input streampublic Activity readTtbinFile(String fileName)
fileName
- Name of the ttbin fileCopyright © 2019. All rights reserved.