class URLConnection extends java.net.URLConnection {

    @Override
	public InputStream getInputStream() throws IOException {
        connect();
		if (getDoInput()) {
			InputStream is = new FileInputStream(this.file);
			if (getUseCaches()) {
				is = new BufferedInputStream(is);
			}
			return is;
		}
		throw new UnknownServiceException("E2"); //$NON-NLS-1$
    }

    protected  URLConnection(URL url);

}