|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A naming context creates and manages names.
Method Summary | |
Name |
decode(byte[] b)
Decodes the given encoded name. |
Name |
export(Object o,
Object hints)
Creates a name in this naming context to designate the given object. |
Method Detail |
public Name export(Object o, Object hints) throws NamingException
getNamingContext
method of the returned name
will return this naming context, i.e.,
nc.export(o, hints).getNamingContext() == nc.
o
- the object to be exported. This object may be a name of another
naming context.hints
- optional additional information.
NamingException
- if the given object cannot be exported.public Name decode(byte[] b) throws NamingException
getNamingContext
method of the returned name will return this naming
context, i.e., nc.decode(b).getNamingContext() == nc.
b
- an array of byte containing the encoded form of a name created by
this naming context.
Name
object.
NamingException
- if the given encoded name cannot be decoded (this
is the case, for example, if the given encoded name was not created by
this naming context).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |