Code example for InetAddress

Methods: getAddress

0
        /* 
         * In spite of what Coverity thinks, InetAddress.getAddress() can NOT 
         * return null. Never. 
         */ 
        if (this.inetAddress != null) {
            byte[] addr = this.inetAddress.getAddress();
            if(addr != null) {
	            parcel.writeInt(addr.length);
	            parcel.writeByteArray(addr);
	        } else { 
	            parcel.writeInt(0);
	        } 
        } else { 
            parcel.writeInt(0);
        } 
        parcel.writeString(this.model);
        parcel.writeString(this.vendor);
    } 
 
    /** 
     * Reads Printers from Parcels.