@Override
  public Object encode(byte[] utf8StrRecord) throws SerializationError {
    try {
      Text blob = new Text(utf8StrRecord);
      return serde.deserialize(blob);
    } catch (SerDeException e) {
      throw new SerializationError("Unable to convert byte[] record into Object", e);
    }
  }
Encode Utf8 encoded string bytes using RegexSerDe

@param utf8StrRecord - serialized record
@return The encoded object
@throws SerializationError - in case of any deserialization error
streaming/src/java/org/apache/hive/streaming/StrictRegexWriter.java