net.IpAddress Extends
Abstract class defining an IP Address. Please use goog.net.IpAddress static methods or goog.net.Ipv4Address/Ipv6Address classes.

Inheritance

Constructor

goog.net.IpAddress(addressversion)

Parameters

address : !goog.math.Integer
The Ip Address.
version : number
The version number (4, 6).

Instance Methods

Public Protected Private
equals(other) boolean
No description.
Arguments:
other : !goog.net.IpAddress
The other IP Address.
Returns: boolean  true if the IP Addresses are equal.
code »
getVersion() number
No description.
Returns: number  The IP Address version.
code »
toInteger() goog.math.Integer
No description.
Returns: goog.math.Integer  The IP Address, as an Integer.
code »
toString() string
No description.
Returns: string  The IP Address, as a string.
code »
toUriString() string
No description.
Returns: string  The IP Address, as an URI string following RFC 3986.
code »

Instance Properties

ipStr_ :
The IPAddress, as string.
Code »
The IP Address.
Code »
version_ :
The IP Address version.
Code »

Static Methods

goog.net.IpAddress.fromString(address) goog.net.IpAddress
Parses an IP Address in a string. If the string is malformed, the function will simply return null instead of raising an exception.
Arguments:
address : string
The IP Address.
Returns: goog.net.IpAddress  The IP Address or null.
code »
goog.net.IpAddress.fromUriString(address) goog.net.IpAddress
Tries to parse a string represented as a host portion of an URI. See RFC 3986 for more details on IPv6 addresses inside URI. If the string is malformed, the function will simply return null instead of raising an exception.
Arguments:
address : string
A RFC 3986 encoded IP address.
Returns: goog.net.IpAddress  The IP Address.
code »

Package net

Package Reference