public List<MessageInfo> getInvalidMessages() {
    return invalidMessages;
  }
Validates and potentially transforms the given input stream consisting of message data. It does so using the list
of {@link Transformer}s associated with this instance.
message corruption and acceptable formats.
@param inMsg the original {@link Message} that needs to be validated and possibly transformed.
@param msgOffset the offset of the message in the stream.
@throws IOException if an exception was encountered reading or writing bytes to/from streams.
ambry-messageformat/src/main/java/com/github/ambry/messageformat/MessageSievingInputStream.java