blob: 4db27678b6f570ef13e8e2f418eb3c8a7a268ab6 [file] [log] [blame]
/*
* (c) Copyright IBM Corp. 2000, 2002.
* All Rights Reserved.
*/
package org.eclipse.help.internal.protocols;
import java.io.*;
import java.net.*;
import org.eclipse.help.internal.util.Logger;
public class LinksURLConnection extends URLConnection {
private LinksURL linksURL = null;
/**
* Constructor for LinksURLConnection
*/
public LinksURLConnection(URL url) {
super(url);
linksURL = new LinksURL(url.getFile());
if (Logger.DEBUG)
Logger.logDebugMessage("LinksURLConnection", "url= " + url);
}
/**
* @see URLConnection#connect()
*/
public void connect() throws IOException {
return;
}
public InputStream getInputStream() throws IOException {
// must override parent implementation, since it does nothing.
return linksURL.openStream();
}
}