Package com.microej.soar
Interface KernelMetadataProvider
-
public interface KernelMetadataProviderThe Kernel metadata is loaded on demand by aFeatureOptimizerby requestingInputStreamchunks usingopenInputStream(int)method.
Metadata chunks are loaded sequentially, so implementations can assume that at most oneInputStreamis open at a time.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InputStreamopenInputStream(int offset)Opens anInputStreamstarting at the given metadata offset (0 based).
-
-
-
Method Detail
-
openInputStream
InputStream openInputStream(int offset) throws IOException
Opens anInputStreamstarting at the given metadata offset (0 based). Caller is responsible for closing theInputStreambefore calling this method again.- Parameters:
offset- the metadata offset where theInputStreamstarts.- Returns:
- an opened
InputStreamready to read at the given metadata offset. - Throws:
IOException- if an IO error occurs when reading from Kernel metadata.
-
-