title: Connection Refused exception upon reading/parsing a shortcut file present in network drive
body: <pre>
       SAXBuilder builder = new SAXBuilder();
       try {
          File f = new File("\\\\bady\\SShare\\mart.xml");
          System.out.println(f.exists());   // Returns False
          System.out.println(f.length());   // Returns 0
  
          Document document = builder.build(f);  //IOException at this point
          Element root = document.getRootElement();
          Element paragraph = root.getChild("mart_element");
          String content = paragraph.getText();
          System.out.println("content = " + content);
          } catch (JDOMException e) {
              e.printStackTrace();
          } catch (IOException e) {
              e.printStackTrace();
          }
  </pre>    
  
  <p>Here <code>mart.xml</code> is a shortcut present in <code>C:\Param\Bin</code> on a windows box. I get the following IOException:</p>
  
  <pre>Exception in thread "main" java.net.ConnectException: Connection refused: connect
          at java.net.PlainSocketImpl.socketConnect(Native Method)
          at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
          at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
          at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
          at java.net.Socket.connect(Socket.java:524)
          at java.net.Socket.connect(Socket.java:474)
          at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
          at sun.net.NetworkClient.openServer(NetworkClient.java:118)
          at sun.net.ftp.FtpClient.openServer(FtpClient.java:488)
          at sun.net.ftp.FtpClient.openServer(FtpClient.java:475)
          at sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:270)
          at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpURLConnection.java:352)
          at JDOMElementTextContent.parseXml(JDOMElementTextContent.java:36)
          at JDOMElementTextContent.main(JDOMElementTextContent.java:47)</pre>
  
  <p>I tried to open Stream from URL using file: protocol but <code>URLConnection.getInputStream</code> throws the same connection refused exception.</p>
  
  <p>Any recommendations would be appreciated?</p>