Interface IResContainerFactory


  • public interface IResContainerFactory
    Factory for ResContainer. Can be used in plugins via context.getResourcesLoader().addResContainerFactory() to implement content parsing in files with different formats.
    • Method Detail

      • init

        default void init​(RootNode root)
        Optional init method
      • create

        @Nullable
        @Nullable ResContainer create​(ResourceFile resFile,
                                      java.io.InputStream inputStream)
                               throws java.io.IOException
        Checks if resource file is of expected format and tries to parse its content.
        Returns:
        ResContainer if file is of expected format, null otherwise.
        Throws:
        java.io.IOException