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)
======================================================================
- duplicates
-
JDK-4072524 extracting InetAddress when IP(byte address) is provided.
- Closed