Class DeviceManifestLoader
java.lang.Object
com.tccc.kos.commons.manifest.loader.DeviceManifestLoader
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DeviceManifest
load
(byte[] buf) ReturnDeviceManifest
from the supplied manifest json string.static DeviceManifest
load
(InputStream is) ReturnDeviceManifest
from the supplied manifest json string.static DeviceManifest
ReturnDeviceManifest
from the supplied manifest json string.
-
Constructor Details
-
DeviceManifestLoader
public DeviceManifestLoader()
-
-
Method Details
-
load
ReturnDeviceManifest
from the supplied manifest json string. -
load
ReturnDeviceManifest
from the supplied manifest json string. -
load
ReturnDeviceManifest
from the supplied manifest json string.
-