All Packages This Package Class Hierarchy Class Search Index
java.lang.Object | +----bmsi.sna.GatewayApp
| Summary |
public class GatewayApp
extends java.lang.Object
{
// Constructors 1
public GatewayApp(String) throws IOException;
// Methods 5
public static void main(String[]) throws Exception;
public String getPath();
public String getVersion() throws IOException;
public int getXID() throws IOException;
public void setXID(int) throws IOException;
}
A class to access disk resident application downloads for the Gateway 50. All binaries seen so far have two version strings at a fixed offset near the beginning. We compare these for a sanity check.
| Constructors |
· GatewayApp | Summary | Top |
public GatewayApp(String fn) throws IOException
Create a reference to a disk resident Gateway application binary.
Parameter Description fn the filename of the binary
| Methods |
· getVersion | Summary | Top |
public String getVersion() throws IOException
Return the version string for this Gateway Application download.
· getPath | Summary | Top |
public String getPath()
Return the pathname of the application binary.
· getXID | Summary | Top |
public int getXID() throws IOException
Return the current XID for this Gateway Application download. Support inspecting the SNA XID hard coded into a Gateway 50 application download. This ought to be a configuration option, but it isn't. We select the XID offset based on the version string. The XID is stored twice with different prefixes, so we can sanity check it.
· setXID | Summary | Top |
public void setXID(int xid) throws IOException
Set the XID for this Gateway Application download. Support changing the SNA XID hard coded into a Gateway 50 application download. This ought to be a configuration option, but it isn't. Until it is, this utility helps in patching the binaries.
Parameter Description xid the new XID
· main | Summary | Top |
public static void main(String[] argv) throws Exception
Command line interface.
Usage: java bmsi.sna.GatewayApp [-xXID] file1 [file2 ...] Reports the App ver and current XID for each listed file. -xXID changes the XID of following files, XID is a hexadecimal number
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7