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

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

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


import java.nio.ByteBuffer;

public class LongConverter implements Converter {

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy