src/share/classes/javax/naming/CompoundName.java
Print this page
*** 374,384 ****
* the range [0,posn).
* @exception ArrayIndexOutOfBoundsException
* If posn is outside the specified range.
*/
public Name getPrefix(int posn) {
! Enumeration comps = impl.getPrefix(posn);
return (new CompoundName(comps, mySyntax));
}
/**
* Creates a compound name whose components consist of a suffix of the
--- 374,384 ----
* the range [0,posn).
* @exception ArrayIndexOutOfBoundsException
* If posn is outside the specified range.
*/
public Name getPrefix(int posn) {
! Enumeration<String> comps = impl.getPrefix(posn);
return (new CompoundName(comps, mySyntax));
}
/**
* Creates a compound name whose components consist of a suffix of the
*** 394,404 ****
* size(), an empty compound name is returned.
* @exception ArrayIndexOutOfBoundsException
* If posn is outside the specified range.
*/
public Name getSuffix(int posn) {
! Enumeration comps = impl.getSuffix(posn);
return (new CompoundName(comps, mySyntax));
}
/**
* Determines whether a compound name is a prefix of this compound name.
--- 394,404 ----
* size(), an empty compound name is returned.
* @exception ArrayIndexOutOfBoundsException
* If posn is outside the specified range.
*/
public Name getSuffix(int posn) {
! Enumeration<String> comps = impl.getSuffix(posn);
return (new CompoundName(comps, mySyntax));
}
/**
* Determines whether a compound name is a prefix of this compound name.
*** 555,565 ****
*/
private void writeObject(java.io.ObjectOutputStream s)
throws java.io.IOException {
s.writeObject(mySyntax);
s.writeInt(size());
! Enumeration comps = getAll();
while (comps.hasMoreElements()) {
s.writeObject(comps.nextElement());
}
}
--- 555,565 ----
*/
private void writeObject(java.io.ObjectOutputStream s)
throws java.io.IOException {
s.writeObject(mySyntax);
s.writeInt(size());
! Enumeration<String> comps = getAll();
while (comps.hasMoreElements()) {
s.writeObject(comps.nextElement());
}
}