01: package vicazh.hyperpool.stream.net.http;
02:
03: import java.io.*;
04: import java.net.*;
05:
06: class LocalStream extends ClientStream {
07: LocalStream(Session session, OutputStream outputstream) {
08: super (session, outputstream);
09: }
10:
11: public void head(String method, String file, String version)
12: throws IOException {
13: String f;
14: try {
15: f = new URL(file).getFile();
16: } catch (MalformedURLException e) {
17: f = file;
18: }
19: super.head(method, f, version);
20: }
21: }
|