Example usage for org.apache.commons.io EndianUtils writeSwappedDouble

List of usage examples for org.apache.commons.io EndianUtils writeSwappedDouble

Introduction

In this page you can find the example usage for org.apache.commons.io EndianUtils writeSwappedDouble.

Prototype

public static void writeSwappedDouble(OutputStream output, double value) throws IOException 

Source Link

Document

Writes a "double" value to an OutputStream.

Usage

From source file:org.apache.hadoop.hive.serde2.teradata.TeradataBinaryDataOutputStream.java

/**
 * Write DOUBLE.// ww w  . j av a 2  s  . c  o  m
 * using little-endian to write double.
 *
 * @param d the d
 * @throws IOException the io exception
 */
public void writeDouble(double d) throws IOException {
    EndianUtils.writeSwappedDouble(this, d);
}