com.ibm.as400.ui.framework.java
Class InternetAddressFormatter

java.lang.Object
  extended by com.ibm.as400.ui.framework.java.DataFormatter
      extended by com.ibm.as400.ui.framework.java.InternetAddressFormatter

public class InternetAddressFormatter
extends DataFormatter

Formatter for exchanging Internet Address values between DataBeans and user interface components. If parsing is unsuccessful, an IllegalUserDataException is thrown.

Since:
v4r2m0
Version:
1.0, 06/01/98
Author:
B. Cragun
See Also:
DataFormatter, IllegalUserDataException

Constructor Summary
Constructor and Description
InternetAddressFormatter()
           
 
Method Summary
Modifier and Type Method and Description
 Object parse(String source)
          Parses a string to produce a valid Internet Address.
static void validate(String address)
           
 
Methods inherited from class com.ibm.as400.ui.framework.java.DataFormatter
format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InternetAddressFormatter

public InternetAddressFormatter()
Method Detail

parse

public Object parse(String source)
             throws IllegalUserDataException
Parses a string to produce a valid Internet Address. Checked for four integers, separated by periods. The four integers must be between 0 and 256. Throws an IllegalUserDataException if parsing fails.

Overrides:
parse in class DataFormatter
Parameters:
source - the string to be parsed
Returns:
the String object obtained by parsing the string
Throws:
IllegalUserDataException
Since:
v4r2m0

validate

public static void validate(String address)
                     throws IllegalUserDataException
Throws:
IllegalUserDataException