/** * Skips an encoded {@link co.cask.cdap.api.stream.StreamEventData}. * * @param decoder Decoder to skip data from. * @throws IOException If there is any IO error during decoding. */ public static void skip(Decoder decoder) throws IOException { // Skips the body decoder.skipBytes(); // Skips the headers int len = decoder.readInt(); while (len != 0) { for (int i = 0; i < len; i++) { decoder.skipString(); if (decoder.readInt() == 0) { decoder.skipString(); } else { decoder.readNull(); } } len = decoder.readInt(); } }
break; case STRING: decoder.skipString(); break; case ENUM:
break; case STRING: decoder.skipString(); break; case ENUM: