All Packages This Package Class Hierarchy Class Search Index
Class bmsi.sna.GatewayConfig
java.lang.Object
|
+----bmsi.sna.GatewayConfig
public class GatewayConfig
extends java.lang.Object
{
// Constructors 1
public GatewayConfig(String) throws IOException;
// Methods 10
public static String formatIP(byte[]);
public static void main(String[]) throws Exception;
public static byte[] parseIP(String) throws IOException;
public void dump();
public byte[] getIP(int);
public String getLabel() throws IOException;
public String getPath();
public String getString(int) throws IOException;
public String getVersion() throws IOException;
public void setIP(int, byte[]) throws IOException;
}
A class to access disk resident configuration downloads for the Gateway 50.
The config file is divided into items. Each item has a 1 byte type code,
followed by data corresponding to that type. Some types are variable
length. The current type decoding is still incomplete, but can
parse and rewrite config files currently available for testing.
The result is good enough for patching the IP addesses.
- Author:
-
Stuart D. Gathman
Copyright (C) 2000 Business Management Systems, Inc.
public GatewayConfig(String fn) throws IOException
Create a reference to a disk resident Gateway application binary.
| Parameter | Description |
| fn | the filename of the binary |
public void dump()
public String getString(int pos) throws IOException
public String getVersion() throws IOException
Return the version string for this Gateway Application download.
public String getLabel() throws IOException
public static String formatIP(byte[] b)
public static byte[] parseIP(String s) throws IOException
public byte[] getIP(int pos)
public void setIP(int pos,
byte[] b) throws IOException
public String getPath()
Return the pathname of the application binary.
public static void main(String[] argv) throws Exception
Command line interface.
Usage: java bmsi.sna.GatewayConfig [attrib=value] file1 [file2 ...]
Reports the Config ver and current IPs for each listed file.
Available attributes are ip, mask, host, gw.
Example:
$ java bmsi.sna.GatewayConfig ip=192.168.29.7 host=192.168.29.5 abc.cfg
All Packages This Package Class Hierarchy Class Search Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7