super(u);
if (!connected) { int port = url.getPort(); if ( port < 1 || port > 65535) { port = DEFAULT_PORT; } this.connection = new Socket(url.getHost(), port); this.connected = true; }
return "text/plain";
if (!connected) this.connect(); return new FiniteInputStream(this.connection.getInputStream());