@Override
    public ShortBuffer readShortBuffer(String name, ShortBuffer defVal) throws IOException {
        Element element = findChildElement(name);

        short[] array = (short[]) readPrimitiveArrayHelper(element, "short");

        if (array == null) {
            return defVal;
        }

        return (ShortBuffer) BufferUtils.createShortBuffer(array.length).put(array).rewind();
    }
Part of the jME XML IO system as introduced in the Google Code jmexml project.

@author Kai Rabien (hevee) - original author of the code.google.com jmexml project
@author Doug Daniels (dougnukem) - adjustments for jME 2.0 and Java 1.5
@author blaine
jme3-plugins/src/xml/java/com/jme3/export/xml/DOMInputCapsule.java