public long getContentLength() { return -1;
public long getContentLength() { long result=-1; try { setup(); result = new Integer(((EXistResource)this.resource).getContentLength()).longValue(); } catch (Exception e){ if (getLogger().isDebugEnabled()) { getLogger().debug("getContentLength() for " + resName + " from collection " + url + " failed: " + e.getMessage()); } } finally { cleanup(); } return result;
    public long getContentLength() {        return -1;    }