/** * {@inheritDoc} */ public Class<?> getClassFromIdentifier(StoreReader storeReader) { byte classId; Byte idObj; classId = storeReader.readByte(); idObj = Byte.valueOf(classId); if (!byteToClassMap.containsKey(idObj)) { throw new OsmosisRuntimeException( "Byte " + classId + " is not a recognised class identifier, the data stream may be corrupt."); } return byteToClassMap.get(idObj); } }
/** * {@inheritDoc} */ public Class<?> getClassFromIdentifier(StoreReader storeReader) { byte classId; Byte idObj; classId = storeReader.readByte(); idObj = Byte.valueOf(classId); if (!byteToClassMap.containsKey(idObj)) { throw new OsmosisRuntimeException( "Byte " + classId + " is not a recognised class identifier, the data stream may be corrupt."); } return byteToClassMap.get(idObj); } }