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

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

Introduction

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

Prototype

public static void writeSwappedLong(OutputStream output, long value) throws IOException 

Source Link

Document

Writes a "long" value to an OutputStream.

Usage

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

/**
 * Write LONG./*w  ww .ja v  a  2s  . c  o m*/
 * using little-endian to write double.
 *
 * @param l the l
 * @throws IOException the io exception
 */
public void writeLong(long l) throws IOException {
    EndianUtils.writeSwappedLong(this, l);
}