All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fr.figarocms.flume.formatter.mapping.converter.DoubleConverter Maven / Gradle / Ivy

package fr.figarocms.flume.formatter.mapping.converter;

import java.nio.ByteBuffer;

public class DoubleConverter implements Converter {

  @Override
  public Double convert(byte[] source) {
    if (source == null) {
      return null;
    }
    ByteBuffer buffer = ByteBuffer.wrap(source);
    return buffer.getDouble();
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy