build
public Binary build(BinaryWrapper wrapper)
throws SerializationException
The BinaryWrapper contains both the Binary metadata and raw byte array content, but in encoded format.
The Binary meta will be Base64 decoded, then GZip decompressed, then JSON deserialized. Then the binary
byte array in the wrapper will be assigned into the decoded Binary.
The end result Binary contains both binary meta and the raw content byte array.
- Parameters:
wrapper - BinaryWrapper to decode, decompress and convert to Binary
- Returns:
- Binary a full Binary object containing metadata and raw content byte []
- Throws:
SerializationException - if anything goes wrong during decompressing, deserialization