@Override
    public Object load(AssetInfo info) throws IOException {
        if (!(info.getKey() instanceof AudioKey)){
            throw new IllegalArgumentException("Audio assets must be loaded using an AudioKey");
        }
        
        AudioKey key = (AudioKey) info.getKey();
        boolean readStream = key.isStream();
        boolean streamCache = key.useStreamCache();
        
        InputStream in = null;
        try {
            in = info.openStream();
            AudioData data = load(in, readStream, streamCache);
            if (readStream && !streamCache) {
                // We still need the stream in this case.
                in = null;
            }
            return data;
        } finally {
            if (in != null){
                in.close();
            }
        }
        
    }
Returns the total of expected OGG bytes. 

@param dataBytesTotal The number of bytes in the input
@return If the computed number of bytes is less than the number
of bytes in the input, it is returned, otherwise the number 
of bytes in the input is returned.
jme3-jogg/src/main/java/com/jme3/audio/plugins/OGGLoader.java