/** * {@inheritDoc} */ public void storeIdentifierForClass(StoreWriter storeWriter, Class<?> clazz) { byte id; if (classToByteMap.containsKey(clazz)) { id = classToByteMap.get(clazz).byteValue(); } else { throw new OsmosisRuntimeException("The class " + clazz + " is not supported by this store class register."); } storeWriter.writeByte(id); }
/** * {@inheritDoc} */ public void storeIdentifierForClass(StoreWriter storeWriter, Class<?> clazz) { byte id; if (classToByteMap.containsKey(clazz)) { id = classToByteMap.get(clazz).byteValue(); } else { throw new OsmosisRuntimeException("The class " + clazz + " is not supported by this store class register."); } storeWriter.writeByte(id); }