That is handled through a server, on the Windows machine, that serves files using a network protocol called CIFS. You need a CIFS client library, such as jCIFS, to talk to a CIFS server, just as you need to use an HTTP client API to talk to an HTTP server. The question that cricket_007 linked to covers this.
– CommonsWareNov 19 '16 at 19:00