Interface ResourceParser.ResourceHandler

All Known Implementing Classes:
BasicResourceHandler, FONDResourceHandler, sfntResourceHandler, versResourceHandler
Enclosing class:
ResourceParser

public static interface ResourceParser.ResourceHandler
The interface that a callback resource handler must support.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    Get the resource type supported by this resource handler.
    void
    The callback that is executed when a resource of the type supported by this handler is encountered in a resource file.
  • Method Details

    • handleResource

      void handleResource(ResourceParser.ResourceEntry entry, long length, InputStream stream)
      The callback that is executed when a resource of the type supported by this handler is encountered in a resource file.
      Parameters:
      entry - the information about this resource
      length - the length of the data stream
      stream - the data stream
    • getResourceType

      byte[] getResourceType()
      Get the resource type supported by this resource handler.
      Returns:
      the resource type supported by this handler