 
	
You are here: Forum Home → ANT Developers Forums → ANT+ FIT Forum Has Moved → Thread
Ian Haigh
public FileEncoder(File var1, ProtocolVersion var2) {
        this.version = var2;
        this.validator = new ProtocolValidator(var2);
        this.open(var1);
    }
    public void open(File var1) {
        var1.delete();
        this.crc16 = new CRC16();
        this.file = var1;
        this.writeFileHeader();
        try {
            this.out = new CheckedOutputStream(new FileOutputStream(this.file, true), this.crc16);
        } catch (IOException var3) {
            throw new FitRuntimeException(var3);
        }
    } 
Ian Haigh