Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4292296

Add InetAddress.getFromByteArray(byte[]) or getByByteArray(byte[])

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.3.0
    • core-libs
    • generic
    • generic



      Name: krT82822 Date: 11/17/99


      user's orig synopsis: "Missing way to import byte array as IP address"

      re. JDK version, user notes: "Not applicable; this is a feature request, dammit!!!"

      I mentioned this a long time ago, but it seems to have gotten dropped.

      I envision using Java in applications where I might receive binary data over
      the network containing a binary representation of an IP address; I should be
      able to obtain an InetAddress object from this. Did I miss the interface? I
      would have thought it would be a constructor or static method of InetAddress

      --------------

      11/17/99 eval1127@eng -- cf. 27305, 22780.
      This submission, like its predecessors, contains no specific API proposal, so I've given a couple of possibilities above,
      the first being easier to read, but the second more closely matching its prospective siblings, getByName()/getAllByName().
      [getFrom... may still be preferable, since getByByteArray() sounds a bit like getByeBye_tArray()]
      (Review ID: 97949)
      ======================================================================

            mullan Sean Mullan
            kryansunw Kevin Ryan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: