org.apache.hadoop.util
Class ProtoUtil
java.lang.Object
org.apache.hadoop.util.ProtoUtil
public abstract class ProtoUtil
- extends Object
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 |
ProtoUtil
public ProtoUtil()
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 © 2012 Apache Software Foundation. All Rights Reserved.