public void register() {
        synchronized (loaders) {
            loaders.add(this);

            maximumHeaderLength = 0;
            for (GVRCompressedTextureLoader loader : loaders) {
                int headerLength = loader.headerLength();
                if (headerLength > maximumHeaderLength) {
                    maximumHeaderLength = headerLength;
                }
            }
        }
    }
public void register ( ) { synchronized ( loaders ) { loaders . add ( this ) ; maximumHeaderLength = 0 ; for ( GVRCompressedTextureLoader loader : loaders ) { int headerLength = loader . headerLength ( ) ; if ( headerLength > maximumHeaderLength ) { maximumHeaderLength = headerLength ; } } } }
Register a loader with the 'sniffer'.

'Factory loaders' are pre-registered. To load a format we don't support,
create a {@link GVRCompressedTextureLoader} descendant. Then, before
trying to load any files in that format, create an instance and call
{@link #register()}:

<pre>

new MyCompressedFormat().register();
</pre>