|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.util.JCIPAddress
The JCIPAddress
class stores an IP address and it will not try
to resolve the IP address on the network.
Field Summary | |
protected int[] |
address
|
static int |
MAX_VALUE
|
static int |
MIN_VALUE
|
Constructor Summary | |
JCIPAddress(InetAddress inet)
Creates a JCIPAddress given a java.net.InetAddress . |
|
JCIPAddress(int[] address)
Creates a JCIPAddress an array of ints. |
|
JCIPAddress(String ip)
Creates a JCIPAddress given a String. |
Method Summary | |
InetAddress |
getInetAddress()
Returns the IP. |
int[] |
getIPAddress()
Returns the IP address as an array of ints. |
protected void |
parseStringIP(String ip)
Given an IP String, it will store each subfield in the address array. |
String |
toString()
Returns the IP as a String. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected int[] address
public static int MAX_VALUE
public static int MIN_VALUE
Constructor Detail |
public JCIPAddress(String ip)
JCIPAddress
given a String.
ip
- format for the String should be %d.%d.%d.%d.public JCIPAddress(InetAddress inet)
JCIPAddress
given a java.net.InetAddress
.
It calls InetAddress.getHostAddress
to obtain the IP.
inet
- public JCIPAddress(int[] address)
JCIPAddress
an array of ints.
address
- Method Detail |
protected void parseStringIP(String ip)
ip
- public String toString()
toString
in class Object
public InetAddress getInetAddress()
java.net.InetAddress
object.
If the IP is invalid, null will be returned.
java.net.InetAddress
objectpublic int[] getIPAddress()
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |