int length, i; String url;
int length;
    public static OMBitmap read(DataInputStream dis) throws IOException {        OMBitmap bitmap = null;        float lat = 0;        float lon = 0;        int x = 0;        int y = 0;        int w = 0;        int h = 0;        int length, i;        String url;        int renderType = dis.readInt();        switch (renderType) {        case RENDERTYPE_OFFSET:            lat = dis.readFloat();            lon = dis.readFloat();        // Fall through...        case RENDERTYPE_XY:            x = dis.readInt();            y = dis.readInt();            break;        case RENDERTYPE_LATLON:        default:            lat = dis.readFloat();            lon = dis.readFloat();        }        w = dis.readInt();        h = dis.readInt();        length = dis.readInt();        byte[] bytes = new byte[length];        dis.readFully(bytes);        switch (renderType) {        case RENDERTYPE_OFFSET:            bitmap = new OMBitmap(lat, lon, x, y, w, h, bytes);            break;        case RENDERTYPE_XY:            bitmap = new OMBitmap(x, y, w, h, bytes);            break;        case RENDERTYPE_LATLON:        default:            bitmap = new OMBitmap(lat, lon, w, h, bytes);        }        LinkProperties properties = new LinkProperties(dis);        if (bitmap != null) {            properties.setProperties(bitmap);            bitmap.setRotationAngle((double) ProjMath.degToRad(PropUtils.floatFromProperties(properties,                    LPC_LINKROTATION,                    0.0f)));        }        return bitmap;    }