/**@class android.net.RouteInfo implements android.os.Parcelable @extends java.lang.Object Represents a network route. <p> This is used both to describe static network configuration and live network configuration information. A route contains three pieces of information: <ul> <li>a destination {@link android.net.IpPrefix} specifying the network destinations covered by this route. If this is {@code null} it indicates a default route of the address family (IPv4 or IPv6) implied by the gateway IP address. <li>a gateway {@link InetAddress} indicating the next hop to use. If this is {@code null} it indicates a directly-connected route. <li>an interface (which may be unspecified). </ul> Either the destination or the gateway may be {@code null}, but not both. If the destination and gateway are both specified, they must be of the same address family (IPv4 or IPv6). */ var RouteInfo = { /**Unicast route. @hide */ RTN_UNICAST : "1", /**Unreachable route. @hide */ RTN_UNREACHABLE : "7", /**Throw route. @hide */ RTN_THROW : "9", /** Implement the Parcelable interface. */ CREATOR : "null", /** @hide */ makeHostRoute : function( ) {}, /** @hide */ makeHostRoute : function( ) {}, /**Retrieves the destination address and prefix length in the form of an {@link android.net.IpPrefix}. @return {Object {android.net.IpPrefix}} {@link IpPrefix} specifying the destination. This is never {@code null}. */ getDestination : function( ) {}, /**TODO: Convert callers to use IpPrefix and then remove. @hide */ getDestinationLinkAddress : function( ) {}, /**Retrieves the gateway or next hop {@link InetAddress} for this route. @return {Object {java.net.InetAddress}} {@link InetAddress} specifying the gateway or next hop. This may be {@code null} for a directly-connected route." */ getGateway : function( ) {}, /**Retrieves the interface used for this route if specified, else {@code null}. @return {String} The name of the interface used for this route. */ getInterface : function( ) {}, /**Retrieves the type of this route. @return {Number} The type of this route; one of the {@code RTN_xxx} constants defined in this class. @hide */ getType : function( ) {}, /**Indicates if this route is a default route (ie, has no destination specified). @return {Boolean} {@code true} if the destination has a prefix length of 0. */ isDefaultRoute : function( ) {}, /**Indicates if this route is an IPv4 default route. @hide */ isIPv4Default : function( ) {}, /**Indicates if this route is an IPv6 default route. @hide */ isIPv6Default : function( ) {}, /**Indicates if this route is a host route (ie, matches only a single host address). @return {Boolean} {@code true} if the destination has a prefix length of 32 or 128 for IPv4 or IPv6, respectively. @hide */ isHostRoute : function( ) {}, /**Indicates if this route has a next hop ({@code true}) or is directly-connected ({@code false}). @return {Boolean} {@code true} if a gateway is specified @hide */ hasGateway : function( ) {}, /**Determines whether the destination and prefix of this route includes the specified address. @param {Object {InetAddress}} destination A {@link InetAddress} to test to see if it would match this route. @return {Boolean} {@code true} if the destination and prefix length cover the given address. */ matches : function( ) {}, /**Find the route from a Collection of routes that best matches a given address. May return null if no routes are applicable. @param {Object {java.util.Collection}} routes a Collection of RouteInfos to chose from @param {Object {InetAddress}} dest the InetAddress your trying to get to @return {Object {android.net.RouteInfo}} the RouteInfo from the Collection that best fits the given address @hide */ selectBestRoute : function( ) {}, /**Returns a human-readable description of this object. */ toString : function( ) {}, /**Compares this RouteInfo object against the specified object and indicates if they are equal. @return {Boolean} {@code true} if the objects are equal, {@code false} otherwise. */ equals : function( ) {}, /**Returns a hashcode for this <code>RouteInfo</code> object. */ hashCode : function( ) {}, /**Implement the Parcelable interface */ describeContents : function( ) {}, /**Implement the Parcelable interface */ writeToParcel : function( ) {}, };