title: Get maximum bandwidth of a Network Adapter
body: <p>I would like to know how do I obtain the max bandwidth of my network adapter. </p>
  
  <p>I can read it when I open my Network settings panel (eg, Wired Connected - 100Mb/s), but I would to obtain this value diagrammatically. Wireless is not needed. </p>
  
  <p>I'm using Ubuntu 12.04 and coding in Java. I took a look in <code>NetworkInterface</code> and <code>InetAddress</code> and found nothing.</p>
  
  <p>Thanks in advance,</p>
  
  <p>Pedro</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Running lshw -class network I found what I want:</p>
  
  <pre><code>lshw -class network
    *-network               
         description: Ethernet interface
         product: NetXtreme BCM5721 Gigabit Ethernet PCI Express
         vendor: Broadcom Corporation
         physical id: 0
         bus info: pci@0000:04:00.0
         logical name: eth0
         version: 21
         serial: 00:10:18:2d:d6:19
         capacity: 1Gbit/s
         width: 64 bits
         clock: 33MHz
  </code></pre>
  
  <p>How to get this from Java application?</p>