Example usage for java.io DataOutput writeByte

List of usage examples for java.io DataOutput writeByte

Introduction

In this page you can find the example usage for java.io DataOutput writeByte.

Prototype

void writeByte(int v) throws IOException;

Source Link

Document

Writes to the output stream the eight low- order bits of the argument v.

Usage

From source file:uk.ac.cam.eng.extraction.hadoop.datatypes.ProvenanceCountMap.java

@Override
public void write(DataOutput out) throws IOException {
    out.writeByte(instance.size());
    for (Entry<ByteWritable, IntWritable> entry : instance.entrySet()) {
        entry.getKey().write(out);/* w  w  w . ja v a  2 s. c om*/
        entry.getValue().write(out);
    }

}