public class FileViewer extends java.lang.Object implements FormatHandler, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
legalCopyright |
Constructor and Description |
---|
FileViewer()
Creates a FileViewer object.
|
FileViewer(java.lang.String clientHost,
java.lang.Integer clientPort)
Creates a FileViewer object.
|
Modifier and Type | Method and Description |
---|---|
void |
setClientHost(java.lang.String clientHost)
Sets the host name of the remote viewer application.
|
void |
setClientPort(java.lang.Integer clientPort)
Sets the port number at which the viewer application is listening.
|
public static final java.lang.String legalCopyright
public FileViewer(java.lang.String clientHost, java.lang.Integer clientPort)
clientHost
and
clientPort
are parsed from the environment
variables FGLSERVER or GRWSERVER in this order.
The variables are expected to follow the syntax
"host:port" (same syntax as the DISPLAY variable
of X Windows).
If neither of them are set the default value "localhost:6400"
is used.clientHost
- the client name running GDC.clientPort
- the client port running GDC.java.lang.IllegalArgumentException
- if the port isn't an
unsigned 16 bit value.public FileViewer()
FileViewer(null, null)
.FileViewer(String, Integer)
public void setClientHost(java.lang.String clientHost)
clientHost
- the host name of the remote viewer applicationsetClientPort(java.lang.Integer)
public void setClientPort(java.lang.Integer clientPort)
clientPort
- The port number at which the remote application is listening.java.lang.IllegalArgumentException
- if the port isn't an
unsigned 16 bit value.setClientHost(java.lang.String)