Java Doc for UniAddress.java in  » Groupware » hipergate » com » knowgate » jcifs » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Groupware » hipergate » com.knowgate.jcifs 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.knowgate.jcifs.UniAddress

UniAddress
public class UniAddress (Code)

Under normal conditions it is not necessary to use this class to use jCIFS properly. Name resolusion is handled internally to the jcifs.smb package.

This class is a wrapper for both jcifs.netbios.NbtAddress and java.net.InetAddress . The name resolution mechanisms used will systematically query all available configured resolution services including WINS, broadcasts, DNS, and LMHOSTS. See Setting Name Resolution Properties and the jcifs.resolveOrder property. Changing jCIFS name resolution properties can greatly affect the behavior of the client and may be necessary for proper operation.

This class should be used in favor of InetAddress to resolve hostnames on LANs and WANs that support a mixture of NetBIOS/WINS and DNS resolvable hosts.


Inner Class :static class Sem
Inner Class :static class QueryThread extends Thread

Field Summary
 Objectaddr
    
 StringcalledName
    

Constructor Summary
public  UniAddress(Object addr)
     Create a UniAddress by wrapping an InetAddress or NbtAddress.

Method Summary
public  booleanequals(Object obj)
     Compare two addresses for equality.
public  StringfirstCalledName()
     Guess first called name to try for session establishment.
public  ObjectgetAddress()
     Return the underlying NbtAddress or InetAddress.
public static  UniAddressgetByName(String hostname)
     Determines the address of a host given it's host name.
public static  UniAddressgetByName(String hostname, boolean possibleNTDomainOrWorkgroup)
     Lookup hostname and return it's UniAddress.
public  StringgetHostAddress()
     Return the IP address as text such as "192.168.1.15".
public  StringgetHostName()
     Return the hostname of this address such as "MYCOMPUTER".
public  inthashCode()
     Return the IP address of this address as a 32 bit integer.
static  booleanisDotQuadIP(String hostname)
    
static  booleanisValidDnsName(String hostname)
    
static  NbtAddresslookupServerOrWorkgroup(String name, InetAddress svr)
    
public  StringnextCalledName()
     Guess next called name to try for session establishment.
public  StringtoString()
     Return the a text representation of this address such as MYCOMPUTER/192.168.1.15.

Field Detail
addr
Object addr(Code)



calledName
String calledName(Code)




Constructor Detail
UniAddress
public UniAddress(Object addr)(Code)
Create a UniAddress by wrapping an InetAddress or NbtAddress.




Method Detail
equals
public boolean equals(Object obj)(Code)
Compare two addresses for equality. Two UniAddresss are equal if they are both UniAddress' and refer to the same IP address.



firstCalledName
public String firstCalledName()(Code)
Guess first called name to try for session establishment. This method is used exclusively by the jcifs.smb package.



getAddress
public Object getAddress()(Code)
Return the underlying NbtAddress or InetAddress.



getByName
public static UniAddress getByName(String hostname) throws UnknownHostException(Code)
Determines the address of a host given it's host name. The name can be a machine name like "jcifs.samba.org", or an IP address like "192.168.1.15".
Parameters:
  host - NetBIOS or DNS hostname to resolve
throws:
  java.net.UnknownHostException - if there is an error resolving the name



getByName
public static UniAddress getByName(String hostname, boolean possibleNTDomainOrWorkgroup) throws UnknownHostException(Code)
Lookup hostname and return it's UniAddress. If the possibleNTDomainOrWorkgroup parameter is true an addtional name query will be performed to locate a master browser.



getHostAddress
public String getHostAddress()(Code)
Return the IP address as text such as "192.168.1.15".



getHostName
public String getHostName()(Code)
Return the hostname of this address such as "MYCOMPUTER".



hashCode
public int hashCode()(Code)
Return the IP address of this address as a 32 bit integer.



isDotQuadIP
static boolean isDotQuadIP(String hostname)(Code)



isValidDnsName
static boolean isValidDnsName(String hostname)(Code)



lookupServerOrWorkgroup
static NbtAddress lookupServerOrWorkgroup(String name, InetAddress svr) throws UnknownHostException(Code)



nextCalledName
public String nextCalledName()(Code)
Guess next called name to try for session establishment. This method is used exclusively by the jcifs.smb package.



toString
public String toString()(Code)
Return the a text representation of this address such as MYCOMPUTER/192.168.1.15.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.