Example usage for java.io DataInput readUTF

List of usage examples for java.io DataInput readUTF

Introduction

In this page you can find the example usage for java.io DataInput readUTF.

Prototype

String readUTF() throws IOException;

Source Link

Document

Reads in a string that has been encoded using a modified UTF-8 format.

Usage

From source file:ph.fingra.hadoop.mapred.parts.performance.domain.HourSessionKey.java

@Override
public void readFields(DataInput in) throws IOException {

    this.appkey = in.readUTF();
    this.session = in.readUTF();
    this.localtime = in.readUTF();
}

From source file:ph.fingra.hadoop.mapred.parts.performance.domain.SesstimeHourKey.java

@Override
public void readFields(DataInput in) throws IOException {

    this.appkey = in.readUTF();
    this.session = in.readUTF();
    this.utctime = in.readUTF();
}

From source file:ph.fingra.hadoop.mapred.parts.performance.domain.TokenfreqHourKey.java

@Override
public void readFields(DataInput in) throws IOException {

    this.appkey = in.readUTF();
    this.token = in.readUTF();
    this.utctime = in.readUTF();
    this.session = in.readUTF();
}

From source file:ph.fingra.hadoop.mapred.parts.performance.domain.TokenfreqKey.java

@Override
public void readFields(DataInput in) throws IOException {

    this.appkey = in.readUTF();
    this.token = in.readUTF();
    this.session = in.readUTF();
}

From source file:ph.fingra.hadoop.mapred.parts.prerole.domain.ComponentNewuserKey.java

@Override
public void readFields(DataInput in) throws IOException {

    this.appkey = in.readUTF();
    this.componentkey = in.readUTF();
    this.token = in.readUTF();
}

From source file:ph.fingra.hadoop.mapred.parts.prerole.domain.TransformKey.java

@Override
public void readFields(DataInput in) throws IOException {

    this.appkey = in.readUTF();
    this.token = in.readUTF();
    this.session = in.readUTF();
    this.cmd = in.readUTF();
    this.utctime = in.readUTF();
}

From source file:uk.ac.gla.terrier.probos.Utils.java

public static String readStringOrNull(DataInput in) throws IOException {
    if (!in.readBoolean())
        return null;
    return in.readUTF();
}

From source file:wikiduper.wikipedia.WikipediaPage.java

/**
 * Serializes this object.//from   w w w. j a  va 2  s  . c  o  m
 */
public void readFields(DataInput in) throws IOException {
    int length = WritableUtils.readVInt(in);
    byte[] bytes = new byte[length];
    in.readFully(bytes, 0, length);
    WikipediaPage.readPage(this, new String(bytes, "UTF-8"));
    language = in.readUTF();
}