public static boolean[] intToBoolean(int[] octets) throws SubneterException
    {
        if (octets.length != 4)
        {
            throw new SubneterException("Invalid IP adress too many or to less octets");
        }
        for (int i = 0; i < 4; i++)
        {
            if (octets[i] < 0 || octets[i] > 255)
            {
                throw new SubneterException("Invalid IP adress " + (i + 1) + ". octed is " + octets[i]);
            }
        }
        boolean[] bits = new boolean[32];
        for (int i = 0; i < 4; i++)
        {
            for (int ii = 0; ii < 8; ii++)
            {
                if (octets[i] >= Math.pow(2, 7 - ii))
                {
                    bits[i * 8 + ii] = true;
                    octets[i] -= Math.pow(2, 7 - ii);
                }
                else
                {
                    bits[i * 8 + ii] = false;
                }
            }
        }

        return bits;
    }