public class McIdasXInfo extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
hostString |
private java.lang.String |
keyString |
private java.lang.String |
portString |
private java.lang.String |
versionString
Conduit protocol info
|
Constructor and Description |
---|
McIdasXInfo()
Constructor
|
McIdasXInfo(McIdasXInfo that)
Copy constructor
|
McIdasXInfo(java.lang.String host,
java.lang.String port,
java.lang.String key)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.io.DataInputStream |
getCommandInputStream(java.lang.String commandLine)
Get the command request DataInputStream.
|
java.io.DataInputStream |
getCommandInputStream(java.lang.String commandLine,
int frame)
Get the command request DataInputStream.
|
private java.lang.String |
getCommandRequest(java.lang.String commandLine)
Get the command request string.
|
private java.lang.String |
getCommandRequest(java.lang.String commandLine,
int frame)
Get the command request string.
|
int |
getCurrentFrame()
Get the current frame in McIDAS-X.
|
java.io.DataInputStream |
getDataInputStream(java.lang.Integer frame)
Get the data request DataInputStream.
|
private java.lang.String |
getDataRequest(java.lang.Integer frame)
Get the data request string.
|
java.io.DataInputStream |
getFileInputStream(java.lang.String filename)
Get the file request DataInputStream.
|
private java.lang.String |
getFileRequest(java.lang.String filename)
Get the file request string.
|
java.util.List |
getFrameNumbers()
Get the list of frame numbers in McIDAS-X.
|
private java.lang.String |
getFrameRequest()
Get the frame request string.
|
private java.lang.String |
getFramesRequest()
Get the frames request string.
|
java.io.DataInputStream |
getGIFInputStream(java.lang.Integer frame)
Get the GIF request DataInputStream.
|
private java.lang.String |
getGIFRequest(java.lang.Integer frame)
Get the GIF request string.
|
java.io.DataInputStream |
getGraphicsInputStream(java.lang.Integer frame)
Get the graphics request DataInputStream.
|
private java.lang.String |
getGraphicsRequest(java.lang.Integer frame)
Get the graphics request string.
|
java.lang.String |
getHostString()
Get the hostString property.
|
java.lang.String |
getKeyString()
Get the keyString property.
|
int |
getNumberOfFrames()
Get the number of frames in McIDAS-X.
|
java.lang.String |
getPortString()
Get the portString property.
|
private java.io.DataInputStream |
getXInputStream(java.lang.String newRequest)
Get a DataInputStream from a given request String.
|
void |
setHostString(java.lang.String newValue)
Set the hostString property.
|
void |
setKeyString(java.lang.String newValue)
Set the keyString property.
|
void |
setPortString(java.lang.String newValue)
Set the portString property.
|
java.lang.String |
toString()
Get a String representation of this object
|
private java.lang.String versionString
private java.lang.String hostString
private java.lang.String portString
private java.lang.String keyString
public McIdasXInfo()
public McIdasXInfo(McIdasXInfo that)
that
- The McIdasXInfo to copypublic McIdasXInfo(java.lang.String host, java.lang.String port, java.lang.String key)
public java.lang.String getHostString()
public java.lang.String getPortString()
public java.lang.String getKeyString()
public void setHostString(java.lang.String newValue)
newValue
- The new vaue for the hostString property.public void setPortString(java.lang.String newValue)
newValue
- The new vaue for the portString property.public void setKeyString(java.lang.String newValue)
newValue
- The new vaue for the keyString property.private java.lang.String getFrameRequest()
private java.lang.String getFramesRequest()
private java.lang.String getFileRequest(java.lang.String filename)
public java.io.DataInputStream getFileInputStream(java.lang.String filename)
private java.lang.String getDataRequest(java.lang.Integer frame)
public java.io.DataInputStream getDataInputStream(java.lang.Integer frame)
private java.lang.String getGraphicsRequest(java.lang.Integer frame)
public java.io.DataInputStream getGraphicsInputStream(java.lang.Integer frame)
private java.lang.String getCommandRequest(java.lang.String commandLine)
private java.lang.String getCommandRequest(java.lang.String commandLine, int frame)
public java.io.DataInputStream getCommandInputStream(java.lang.String commandLine)
public java.io.DataInputStream getCommandInputStream(java.lang.String commandLine, int frame)
private java.lang.String getGIFRequest(java.lang.Integer frame)
public java.io.DataInputStream getGIFInputStream(java.lang.Integer frame)
public java.lang.String toString()
toString
in class java.lang.Object
private java.io.DataInputStream getXInputStream(java.lang.String newRequest)
public int getCurrentFrame()
public int getNumberOfFrames()
public java.util.List getFrameNumbers()