Class DeviceManifestLoader

java.lang.Object
com.tccc.kos.commons.manifest.loader.DeviceManifestLoader

public class DeviceManifestLoader extends Object
Loader that can return an instance of DeviceManifest based on the supplied json. This hides the details of loading different formats of manifests and returns a consistent, interface based structure to the caller.

This exists to support multiple manifest formats over time. Old code may not be able to load new manifest formats and this is the code that will catch that failure and propagate the error in a consistent way. This will also allow newer code to interact with older manifests.

Version:
2023-10-01
  • Constructor Details

    • DeviceManifestLoader

      public DeviceManifestLoader()
  • Method Details

    • load

      public static DeviceManifest load(String json)
      Return DeviceManifest from the supplied manifest json string.
    • load

      public static DeviceManifest load(byte[] buf)
      Return DeviceManifest from the supplied manifest json string.
    • load

      public static DeviceManifest load(InputStream is)
      Return DeviceManifest from the supplied manifest json string.