[jcifs] SMB URL Parsing
Michael B. Allen
miallen at eskimo.com
Thu Sep 26 19:12:05 EST 2002
Well without much effort the standard Java 2 java.net.URL class seems to
parse most everything ok. I think we're just going to have to require Java
2 and be done with it. BSD was the hold up IIRC and I think they said they
run Java 2 natively now.
[miallen at nano j]$ java SmbURLTest \
'smb://dom;user:pass@server/share/p@th/../to some/file?WINS=192.168.1.18'
authority: dom;user:pass at server
file: /share/p at th/../to some/file?WINS=192.168.1.18
host: server
port: -1
path: /share/p at th/../to some/file
query: WINS=192.168.1.18
ref: null
userinfo: dom;user:pass
externalform: smb://dom;user:pass@server/share/p@th/../to some/file?WINS=192.168.1.18
string: smb://dom;user:pass@server/share/p@th/../to some/file?WINS=192.168.1.18
--
A program should be written to model the concepts of the task it
performs rather than the physical world or a process because this
maximizes the potential for it to be applied to tasks that are
conceptually similar and more importantly to tasks that have not
yet been conceived.
More information about the jcifs
mailing list