@Override
    public void writeAVLData(OutputStream out) {
        PrintStream ps = new PrintStream(out);
        ps.print("\nSECTION\n");                      //        SECTION                             |  (keyword)
        ps.printf(locale, "#Xle      Yle       Zle       Chord     Ainc      Nspan     Sspace\n" + formatFloat(5), this.getXle(),
                this.getYle(), this.getZle(),
                this.getChord(), this.getAinc());     //0.0 5.0 0.2   0.50  1.50   5 -2.0   | Xle Yle Zle   Chord Ainc   [ Nspan Sspace ]

        if (this.getNspan() != 0){
            ps.printf(locale, formatInteger(1) + formatFloat(1), this.getNspan(), this.getSspace());
        }
        ps.print("\n");

        if (!this.getNACA().equals("")){
            //NACA                      |    (keyword)
            ps.println("NACA");
            ps.println(this.getNACA());            //4300                      | section NACA camberline
        }else if (!this.getAFILE().equals("")){
            ps.print("AFILE");
            if (this.getX1()!=0 || this.getX2()!=0) ps.printf(locale, " " + formatFloat(2), this.getX1(), this.getX2());
            ps.println();
            ps.println(this.getAFILE());
        }

        for(Control control : this.getControls()){
            control.writeAVLData(out);
        }
    }