public DefinedRuntimes fromBytes(final byte[] serializedDefinedRuntimes) throws
          IOException{
    try(InputStream is = new ByteArrayInputStream(serializedDefinedRuntimes)) {
      final BinaryDecoder decoder = DecoderFactory.get().binaryDecoder(is, null);
      final SpecificDatumReader<DefinedRuntimes> reader = new SpecificDatumReader<>(DefinedRuntimes.class);
      final DefinedRuntimes rd = reader.read(null, decoder);
      return rd;
    }
  }
public DefinedRuntimes fromBytes ( final byte [ ] serializedDefinedRuntimes ) throws IOException { try ( InputStream is = new ByteArrayInputStream ( serializedDefinedRuntimes ) ) { final BinaryDecoder decoder = DecoderFactory . get ( ) . binaryDecoder ( is , null ) ; final SpecificDatumReader < DefinedRuntimes > reader = new SpecificDatumReader < > ( DefinedRuntimes . class ) ; final DefinedRuntimes rd = reader . read ( null , decoder ) ; return rd ; } }
Deserializes avro definition.
@param serializedDefinedRuntimes serialized definition
@return Avro object
@throws IOException