Java Doc for BinaryRefAddr.java in  » 6.0-JDK-Core » naming » javax » naming » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Home
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
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Net
51.Parser
52.PDF
53.Portal
54.Profiler
55.Project Management
56.Report
57.RSS RDF
58.Rule Engine
59.Science
60.Scripting
61.Search Engine
62.Security
63.Sevlet Container
64.Source Control
65.Swing Library
66.Template Engine
67.Test Coverage
68.Testing
69.UML
70.Web Crawler
71.Web Framework
72.Web Mail
73.Web Server
74.Web Services
75.Web Services apache cxf 2.2.6
76.Web Services AXIS2
77.Wiki Engine
78.Workflow Engines
79.XML
80.XML UI
Java Source Code / Java Documentation » 6.0 JDK Core » naming » javax.naming 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.naming.RefAddr
      javax.naming.BinaryRefAddr

BinaryRefAddr
public class BinaryRefAddr extends RefAddr (Code)
This class represents the binary form of the address of a communications end-point.

A BinaryRefAddr consists of a type that describes the communication mechanism and an opaque buffer containing the address description specific to that communication mechanism. The format and interpretation of the address type and the contents of the opaque buffer are based on the agreement of three parties: the client that uses the address, the object/server that can be reached using the address, and the administrator or program that creates the address.

An example of a binary reference address is an BER X.500 presentation address. Another example of a binary reference address is a serialized form of a service's object handle.

A binary reference address is immutable in the sense that its fields once created, cannot be replaced. However, it is possible to access the byte array used to hold the opaque buffer. Programs are strongly recommended against changing this byte array. Changes to this byte array need to be explicitly synchronized.
author:
   Rosanna Lee
author:
   Scott Seligman
version:
   1.14 07/05/05
See Also:   RefAddr
See Also:   StringRefAddr
since:
   1.3




Constructor Summary
public  BinaryRefAddr(String addrType, byte[] src)
     Constructs a new instance of BinaryRefAddr using its address type and a byte array for contents.
public  BinaryRefAddr(String addrType, byte[] src, int offset, int count)
     Constructs a new instance of BinaryRefAddr using its address type and a region of a byte array for contents.

Method Summary
public  booleanequals(Object obj)
     Determines whether obj is equal to this address.
public  ObjectgetContent()
     Retrieves the contents of this address as an Object.
public  inthashCode()
     Computes the hash code of this address using its address type and contents.
public  StringtoString()
     Generates the string representation of this address.


Constructor Detail
BinaryRefAddr
public BinaryRefAddr(String addrType, byte[] src)(Code)
Constructs a new instance of BinaryRefAddr using its address type and a byte array for contents.
Parameters:
  addrType - A non-null string describing the type of the address.
Parameters:
  src - The non-null contents of the address as a byte array.The contents of src is copied into the new BinaryRefAddr.



BinaryRefAddr
public BinaryRefAddr(String addrType, byte[] src, int offset, int count)(Code)
Constructs a new instance of BinaryRefAddr using its address type and a region of a byte array for contents.
Parameters:
  addrType - A non-null string describing the type of the address.
Parameters:
  src - The non-null contents of the address as a byte array.The contents of src is copied into the new BinaryRefAddr.
Parameters:
  offset - The starting index in src to get the bytes.0 <= offset <= src.length.
Parameters:
  count - The number of bytes to extract from src.0 <= count <= src.length-offset.




Method Detail
equals
public boolean equals(Object obj)(Code)
Determines whether obj is equal to this address. It is equal if it contains the same address type and their contents are byte-wise equivalent.
Parameters:
  obj - The possibly null object to check. true if the object is equal; false otherwise.



getContent
public Object getContent()(Code)
Retrieves the contents of this address as an Object. The result is a byte array. Changes to this array will affect this BinaryRefAddr's contents. Programs are recommended against changing this array's contents and to lock the buffer if they need to change it. The non-null buffer containing this address's contents.



hashCode
public int hashCode()(Code)
Computes the hash code of this address using its address type and contents. Two BinaryRefAddrs have the same hash code if they have the same address type and the same contents. It is also possible for different BinaryRefAddrs to have the same hash code. The hash code of this address as an int.



toString
public String toString()(Code)
Generates the string representation of this address. The string consists of the address's type and contents with labels. The first 32 bytes of contents are displayed (in hexadecimal). If there are more than 32 bytes, "..." is used to indicate more. This string is meant to used for debugging purposes and not meant to be interpreted programmatically. The non-null string representation of this address.



Fields inherited from javax.naming.RefAddr
protected String addrType(Code)(Java Doc)

Methods inherited from javax.naming.RefAddr
public boolean equals(Object obj)(Code)(Java Doc)
abstract public Object getContent()(Code)(Java Doc)
public String getType()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public String toString()(Code)(Java Doc)

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.