Methods Summary |
---|
public synchronized void | connect()
if (!connected) {
int port = url.getPort();
if ( port < 0) {
port = DEFAULT_PORT;
}
this.connection = new Socket(url.getHost(), port);
this.connected = true;
}
|
public java.lang.Object | getContent()
ContentHandler ch = new x_time();
return ch.getContent(this);
|
public java.lang.Object | getContent(java.lang.Class[] classes)
ContentHandler ch = new x_time();
return ch.getContent(this, classes);
|
public java.lang.String | getContentType()
return "application/x-time";
|
public java.io.InputStream | getInputStream()
if (!connected) this.connect();
return this.connection.getInputStream();
|