MinieLibrary/src/main/java/com/jme3/bullet/animation/RagUtils.java
/**
     * Read an array of transforms from an input capsule.
     *
     * @param capsule the input capsule (not null)
     * @param fieldName the name of the field to read (not null)
     * @return a new array or null
     * @throws IOException from capsule
     */
Read an array of transforms from an input capsule.

@param capsule the input capsule (not null)
@param fieldName the name of the field to read (not null)
@return a new array or null
@throws IOException from capsule
Read an array of transforms from an input capsule . @param capsule the input capsule ( not null ) @param fieldName the name of the field to read ( not null ) @return a new array or null @throws IOException from capsule
public static Transform[] readTransformArray(InputCapsule capsule,
            String fieldName) throws IOException {
        Validate.nonNull(capsule, "capsule");
        Validate.nonNull(fieldName, "field name");
        Savable[] tmp = capsule.readSavableArray(fieldName, null);
        Transform[] result;
        if (tmp == null) {
            result = null;
        } else {
            result = new Transform[tmp.length];
            for (int i = 0; i < tmp.length; ++i) {
                result[i] = (Transform) tmp[i];
            }
        }
        return result;
    }
public static Transform [ ] readTransformArray ( InputCapsule capsule , String fieldName ) throws IOException { Validate . nonNull ( capsule , "capsule" ) ; Validate . nonNull ( fieldName , "field name" ) ; Savable [ ] tmp = capsule . readSavableArray ( fieldName , null ) ; Transform [ ] result ; if ( tmp == null ) { result = null ; } else { result = new Transform [ tmp . length ] ; for ( int i = 0 ; i < tmp . length ; ++ i ) { result [ i ] = ( Transform ) tmp [ i ] ; } } return result ; }
Read an array of transforms from an input capsule.
Read an array of transforms from an input capsule .