new routines for isp phone number

git-svn-id: svn://10.0.0.236/trunk@5096 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
timm
1998-07-07 16:26:19 +00:00
parent d3f74f0d4c
commit d4b0d09e4a
3 changed files with 42 additions and 11 deletions

View File

@@ -242,6 +242,29 @@ public class CPGenerator
return null;
}
public static String getISPModemNumber( String ispName, int popIndex )
{
ISPDynamicData ispData = getISPDynamicData( ispName );
if ( ispData == null )
{
//Trace.TRACE( "isp not found: " + isp );
return null;
}
int size = ispData.getDynamicDataSize();
//Trace.TRACE( "size: " + size );
if ( size < popIndex )
return null;
NameValueSet nvSet = ispData.getDynamicData( popIndex );
String phoneNum = nvSet.getValue( "phone" );
return phoneNum;
}
/*
Takes the given inputFile and looks for strings in the form
"@@@string_to_replace@@@" and replaces them with the value