Finds the proper codec and calls it's decode method to return the histogram data point for queries or validation. @param id The ID of the histogram type to search for. @param raw_data The non-null and non-empty byte array to parse. Should NOT include the first byte of the ID in the data. @param incl
(final int id,
final byte[] raw_data,
final boolean includes_id)
| 199 | * @return A non-null data point if decoding was successful. |
| 200 | */ |
| 201 | public Histogram decode(final int id, |
| 202 | final byte[] raw_data, |
| 203 | final boolean includes_id) { |
| 204 | final HistogramDataPointCodec codec = getCodec(id); |
| 205 | return codec.decode(raw_data, includes_id); |
| 206 | } |
| 207 | } |