try {
this.dataIn.mark(10);
int type = this.dataIn.read();
if (type == -1) {
throw new MessageEOFException("reached end of data");
}
if (type == MarshallingSupport.BOOLEAN_TYPE) {
return this.dataIn.readBoolean();
}
if (type == MarshallingSupport.STRING_TYPE) {