How to get subnet mask using java 1.4.1?

I would like to know..1. What subnet are we in?2. What are the Ip address range in my subnet? Are there any apis available, or should we call system commands to get this information? Please let me know.
[230 byte] By [konkia] at [2007-10-1 2:35:46]
# 1

linux:/home/posman # ifconfig

eth0Link encap:Ethernet HWaddr 00:08:02:10:53:07

inet addr:10.11.67.4 Bcast:10.11.95.255 Mask:255.255.224.0

inet6 addr: fe80::208:2ff:fe10:5307/64 Scope:Link

UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1

RX packets:40411056 errors:0 dropped:0 overruns:0 frame:0

TX packets:2488165 errors:0 dropped:0 overruns:0 carrier:0

collisions:1686204 txqueuelen:1000

RX bytes:2079525902 (1983.1 Mb) TX bytes:693777020 (661.6 Mb)

ipconfig

Windows 2000 IP Configuration

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . :

IP Address. . . . . . . . . . . . : 10.11.65.177

Subnet Mask . . . . . . . . . . . : 255.255.224.0

Default Gateway . . . . . . . . . : 10.11.95.254

BIJ001a at 2007-7-8 11:43:31 > top of Java-index,Administration Tools,Sun Connection...