Examples of asInteger()


Examples of org.apache.commons.net.util.SubnetUtils.SubnetInfo.asInteger()

        System.out.printf("Subnet Information for %s:\n", subnet);
        System.out.println("--------------------------------------");
        System.out.printf("IP Address:\t\t\t%s\t[%s]\n", info.getAddress(),
                Integer.toBinaryString(info.asInteger(info.getAddress())));
        System.out.printf("Netmask:\t\t\t%s\t[%s]\n", info.getNetmask(),
                Integer.toBinaryString(info.asInteger(info.getNetmask())));
        System.out.printf("CIDR Representation:\t\t%s\n\n", info.getCidrSignature());

        System.out.printf("Supplied IP Address:\t\t%s\n\n", info.getAddress());

        System.out.printf("Network Address:\t\t%s\t[%s]\n", info.getNetworkAddress(),
View Full Code Here

Examples of org.apache.commons.net.util.SubnetUtils.SubnetInfo.asInteger()

        System.out.printf("CIDR Representation:\t\t%s\n\n", info.getCidrSignature());

        System.out.printf("Supplied IP Address:\t\t%s\n\n", info.getAddress());

        System.out.printf("Network Address:\t\t%s\t[%s]\n", info.getNetworkAddress(),
                Integer.toBinaryString(info.asInteger(info.getNetworkAddress())));
        System.out.printf("Broadcast Address:\t\t%s\t[%s]\n", info.getBroadcastAddress(),
                Integer.toBinaryString(info.asInteger(info.getBroadcastAddress())));
        System.out.printf("Low Address:\t\t\t%s\t[%s]\n", info.getLowAddress(),
                Integer.toBinaryString(info.asInteger(info.getLowAddress())));
        System.out.printf("High Address:\t\t\t%s\t[%s]\n", info.getHighAddress(),
View Full Code Here

Examples of org.apache.commons.net.util.SubnetUtils.SubnetInfo.asInteger()

        System.out.printf("Supplied IP Address:\t\t%s\n\n", info.getAddress());

        System.out.printf("Network Address:\t\t%s\t[%s]\n", info.getNetworkAddress(),
                Integer.toBinaryString(info.asInteger(info.getNetworkAddress())));
        System.out.printf("Broadcast Address:\t\t%s\t[%s]\n", info.getBroadcastAddress(),
                Integer.toBinaryString(info.asInteger(info.getBroadcastAddress())));
        System.out.printf("Low Address:\t\t\t%s\t[%s]\n", info.getLowAddress(),
                Integer.toBinaryString(info.asInteger(info.getLowAddress())));
        System.out.printf("High Address:\t\t\t%s\t[%s]\n", info.getHighAddress(),
                Integer.toBinaryString(info.asInteger(info.getHighAddress())));
View Full Code Here

Examples of org.apache.commons.net.util.SubnetUtils.SubnetInfo.asInteger()

        System.out.printf("Network Address:\t\t%s\t[%s]\n", info.getNetworkAddress(),
                Integer.toBinaryString(info.asInteger(info.getNetworkAddress())));
        System.out.printf("Broadcast Address:\t\t%s\t[%s]\n", info.getBroadcastAddress(),
                Integer.toBinaryString(info.asInteger(info.getBroadcastAddress())));
        System.out.printf("Low Address:\t\t\t%s\t[%s]\n", info.getLowAddress(),
                Integer.toBinaryString(info.asInteger(info.getLowAddress())));
        System.out.printf("High Address:\t\t\t%s\t[%s]\n", info.getHighAddress(),
                Integer.toBinaryString(info.asInteger(info.getHighAddress())));

        System.out.printf("Total usable addresses: \t%d\n", Integer.valueOf(info.getAddressCount()));
        System.out.printf("Address List: %s\n\n", Arrays.toString(info.getAllAddresses()));
View Full Code Here

Examples of org.apache.commons.net.util.SubnetUtils.SubnetInfo.asInteger()

        System.out.printf("Broadcast Address:\t\t%s\t[%s]\n", info.getBroadcastAddress(),
                Integer.toBinaryString(info.asInteger(info.getBroadcastAddress())));
        System.out.printf("Low Address:\t\t\t%s\t[%s]\n", info.getLowAddress(),
                Integer.toBinaryString(info.asInteger(info.getLowAddress())));
        System.out.printf("High Address:\t\t\t%s\t[%s]\n", info.getHighAddress(),
                Integer.toBinaryString(info.asInteger(info.getHighAddress())));

        System.out.printf("Total usable addresses: \t%d\n", Integer.valueOf(info.getAddressCount()));
        System.out.printf("Address List: %s\n\n", Arrays.toString(info.getAllAddresses()));

        final String prompt ="Enter an IP address (e.g. 192.168.0.10):";
View Full Code Here

Examples of org.apache.commons.net.util.SubnetUtils.SubnetInfo.asInteger()

        SubnetInfo info = utils.getInfo();
       
        System.out.printf("Subnet Information for %s:\n", subnet);
        System.out.println("--------------------------------------");
        System.out.printf("IP Address:\t\t\t%s\t[%s]\n", info.getAddress(),
                Integer.toBinaryString(info.asInteger(info.getAddress())));
        System.out.printf("Netmask:\t\t\t%s\t[%s]\n", info.getNetmask(),
                Integer.toBinaryString(info.asInteger(info.getNetmask())));
        System.out.printf("CIDR Representation:\t\t%s\n\n", info.getCidrSignature());
       
        System.out.printf("Supplied IP Address:\t\t%s\n\n", info.getAddress());
View Full Code Here

Examples of org.apache.commons.net.util.SubnetUtils.SubnetInfo.asInteger()

        System.out.printf("Subnet Information for %s:\n", subnet);
        System.out.println("--------------------------------------");
        System.out.printf("IP Address:\t\t\t%s\t[%s]\n", info.getAddress(),
                Integer.toBinaryString(info.asInteger(info.getAddress())));
        System.out.printf("Netmask:\t\t\t%s\t[%s]\n", info.getNetmask(),
                Integer.toBinaryString(info.asInteger(info.getNetmask())));
        System.out.printf("CIDR Representation:\t\t%s\n\n", info.getCidrSignature());
       
        System.out.printf("Supplied IP Address:\t\t%s\n\n", info.getAddress());
       
        System.out.printf("Network Address:\t\t%s\t[%s]\n", info.getNetworkAddress(),
View Full Code Here

Examples of org.apache.commons.net.util.SubnetUtils.SubnetInfo.asInteger()

        System.out.printf("CIDR Representation:\t\t%s\n\n", info.getCidrSignature());
       
        System.out.printf("Supplied IP Address:\t\t%s\n\n", info.getAddress());
       
        System.out.printf("Network Address:\t\t%s\t[%s]\n", info.getNetworkAddress(),
                Integer.toBinaryString(info.asInteger(info.getNetworkAddress())));
        System.out.printf("Broadcast Address:\t\t%s\t[%s]\n", info.getBroadcastAddress(),
                Integer.toBinaryString(info.asInteger(info.getBroadcastAddress())));
        System.out.printf("Low Address:\t\t\t%s\t[%s]\n", info.getLowAddress(),
                Integer.toBinaryString(info.asInteger(info.getLowAddress())));
        System.out.printf("High Address:\t\t\t%s\t[%s]\n", info.getHighAddress(),
View Full Code Here

Examples of org.apache.commons.net.util.SubnetUtils.SubnetInfo.asInteger()

        System.out.printf("Supplied IP Address:\t\t%s\n\n", info.getAddress());
       
        System.out.printf("Network Address:\t\t%s\t[%s]\n", info.getNetworkAddress(),
                Integer.toBinaryString(info.asInteger(info.getNetworkAddress())));
        System.out.printf("Broadcast Address:\t\t%s\t[%s]\n", info.getBroadcastAddress(),
                Integer.toBinaryString(info.asInteger(info.getBroadcastAddress())));
        System.out.printf("Low Address:\t\t\t%s\t[%s]\n", info.getLowAddress(),
                Integer.toBinaryString(info.asInteger(info.getLowAddress())));
        System.out.printf("High Address:\t\t\t%s\t[%s]\n", info.getHighAddress(),
                Integer.toBinaryString(info.asInteger(info.getHighAddress())));
       
View Full Code Here

Examples of org.apache.commons.net.util.SubnetUtils.SubnetInfo.asInteger()

        System.out.printf("Network Address:\t\t%s\t[%s]\n", info.getNetworkAddress(),
                Integer.toBinaryString(info.asInteger(info.getNetworkAddress())));
        System.out.printf("Broadcast Address:\t\t%s\t[%s]\n", info.getBroadcastAddress(),
                Integer.toBinaryString(info.asInteger(info.getBroadcastAddress())));
        System.out.printf("Low Address:\t\t\t%s\t[%s]\n", info.getLowAddress(),
                Integer.toBinaryString(info.asInteger(info.getLowAddress())));
        System.out.printf("High Address:\t\t\t%s\t[%s]\n", info.getHighAddress(),
                Integer.toBinaryString(info.asInteger(info.getHighAddress())));
       
        System.out.printf("Total usable addresses: \t%d\n", info.getAddressCount());
        System.out.printf("Address List: %s\n\n", Arrays.toString(info.getAllAddresses()));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.