int b=in.read(); if(b == 0)
if(in.readBoolean() == false)
    public static Streamable readStreamable(Class clazz, DataInputStream in) throws IOException, IllegalAccessException, InstantiationException {        Streamable retval=null;        int b=in.read();        if(b == 0)            return null;        retval=(Streamable)clazz.newInstance();        retval.readFrom(in);        return retval;    }