Package 

Interface MetadataLoader


  • 
    public interface MetadataLoader
    
                        

    Interface for clients to specify a customized phone metadata loader, useful for Android apps to load Android resources since the library loads Java resources by default, e.g. with AssetManager. Note that implementation owners have the responsibility to ensure this is thread-safe.

    • Method Summary

      Modifier and Type Method Description
      abstract InputStream loadMetadata(String metadataFileName) Returns an input stream corresponding to the metadata to load.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • loadMetadata

         abstract InputStream loadMetadata(String metadataFileName)

        Returns an input stream corresponding to the metadata to load. This method may be calledconcurrently so implementations must be thread-safe.

        Parameters:
        metadataFileName - file name (including path) of metadata to load.