MinieLibrary/src/main/java/com/jme3/bullet/animation/DacLinks.java
/**
     * Serialize this Control to the specified exporter, for example when saving
     * to a J3O file.
     *
     * @param exporter (not null)
     * @throws IOException from the exporter
     */
Serialize this Control to the specified exporter, for example when saving
to a J3O file.

@param exporter (not null)
@throws IOException from the exporter
Serialize this Control to the specified exporter for example when saving to a J3O file . @param exporter ( not null ) @throws IOException from the exporter
@Override
    public void write(JmeExporter exporter) throws IOException {
        super.write(exporter);
        OutputCapsule capsule = exporter.getCapsule(this);
        if (boneLinkList != null) {
            int count = countLinkedBones();
            Savable[] savableArray = new Savable[count];
            boneLinkList.toArray(savableArray);
            capsule.write(savableArray, tagBoneLinkList, null);
        }
        int count = countAttachments();
        AttachmentLink[] links = new AttachmentLink[count];
        attachmentLinks.values().toArray(links);
        capsule.write(links, tagAttachmentLinks, new AttachmentLink[0]);
        capsule.write(armature, tagArmature, null);
        capsule.write(skeleton, tagSkeleton, null);
        capsule.write(transformer, tagTransformer, null);
        capsule.write(torsoLink, tagTorsoLink, null);
    }
@ Override public void write ( JmeExporter exporter ) throws IOException { super . write ( exporter ) ; OutputCapsule capsule = exporter . getCapsule ( this ) ; if ( boneLinkList != null ) { int count = countLinkedBones ( ) ; Savable [ ] savableArray = new Savable [ count ] ; boneLinkList . toArray ( savableArray ) ; capsule . write ( savableArray , tagBoneLinkList , null ) ; } int count = countAttachments ( ) ; AttachmentLink [ ] links = new AttachmentLink [ count ] ; attachmentLinks . values ( ) . toArray ( links ) ; capsule . write ( links , tagAttachmentLinks , new AttachmentLink [ 0 ] ) ; capsule . write ( armature , tagArmature , null ) ; capsule . write ( skeleton , tagSkeleton , null ) ; capsule . write ( transformer , tagTransformer , null ) ; capsule . write ( torsoLink , tagTorsoLink , null ) ; }
Serialize this Control to the specified exporter, for example when saving
 to a J3O file.
Serialize this Control to the specified exporter for example when saving to a J3O file .