}
@Override
public void readArrayEnd(boolean check) throws IOException {
if(!stack.topIsArray()) {
throw new MessageTypeException("readArrayEnd() is called but readArrayBegin() is not called");
}
int remain = stack.getTopCount();
if(remain > 0) {
if(check) {
throw new MessageTypeException("readArrayEnd(check=true) is called but the array is not end");
}
for(int i=0; i < remain; i++) {
skip();
}
}