org.apache.hadoop.util
Class ProtoUtil

java.lang.Object
  extended by org.apache.hadoop.util.ProtoUtil

public abstract class ProtoUtil
extends Object


Constructor Summary
ProtoUtil()
           
 
Method Summary
static int readRawVarint32(DataInput in)
          Read a variable length integer in the same format that ProtoBufs encodes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProtoUtil

public ProtoUtil()
Method Detail

readRawVarint32

public static int readRawVarint32(DataInput in)
                           throws IOException
Read a variable length integer in the same format that ProtoBufs encodes.

Parameters:
in - the input stream to read from
Returns:
the integer
Throws:
IOException - if it is malformed or EOF.


Copyright © 2013 Apache Software Foundation. All Rights Reserved.