public Token read(Token t) throws IOException {
    if (t.e == EditsElement.OPCODE) {
      // read the offset first
      LongToken offsetToken = new LongToken(EditsElement.OFFSET);
      offsetToken.fromString(getNextElementsValue(EditsElement.OFFSET.name()));
      t.offset = offsetToken.value;
    }
    t.fromString(getNextElementsValue(t.getEditsElement().toString()));
    return t;
  }
public Token read ( Token t ) throws IOException { if ( t . e == EditsElement . OPCODE ) { LongToken offsetToken = new LongToken ( EditsElement . OFFSET ) ; offsetToken . fromString ( getNextElementsValue ( EditsElement . OFFSET . name ( ) ) ) ; t . offset = offsetToken . value ; } t . fromString ( getNextElementsValue ( t . getEditsElement ( ) . toString ( ) ) ) ; return t ; }
@see org.apache.hadoop.hdfs.tools.offlineEditsViewer.Tokenizer#read

@param t a token to read
@return token that was just read