return new Boolean(readBoolean());
return Boolean.valueOf(readBoolean());
protected Object readValue(Class valueClass) throws IOException, ClassNotFoundException {    if(valueClass.isPrimitive()){        if(valueClass == Boolean.TYPE)            return new Boolean(readBoolean());        if(valueClass == Byte.TYPE)            return new Byte(readByte());        if(valueClass == Character.TYPE)            return new Character(readChar());        if(valueClass == Short.TYPE)            return new Short(readShort());        if(valueClass == Integer.TYPE)            return new Integer(readInt());        if(valueClass == Long.TYPE)            return new Long(readLong());        if(valueClass == Float.TYPE)            return new Float(readFloat());        if(valueClass == Double.TYPE)            return new Double(readDouble());        else            throw new Error("Unsupported primitive class: " + valueClass);    } else        return readObject();}