public final class OctetListFacade extends ValueListFacade
valueList| Constructor and Description |
|---|
OctetListFacade(ValueList comp)
Constructs an OctetListFacade object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addOctet(byte[] octet)
Adds an octet to the list.
|
static ValueList |
createValueList(byte[][] octets)
Creates an NDS octet list ValueList.
|
static ValueList |
createValueList(byte[][] octets,
Syntax syn)
Creates an octet list ValueList.
|
byte[] |
getOctet(int index)
Retrieves an octet in the list.
|
byte[][] |
getOctets()
Retrieves the octet list.
|
void |
removeOctet(int index)
Removes an octet from the list.
|
void |
replaceOctet(byte[] octet,
int index)
Replace an octet in the list.
|
void |
setOctet(byte[] newOctet,
int index)
Sets an octet in the list.
|
getValueList, replaceBooleanValue, replaceHexValue, replaceLongValue, replaceStringValue, replaceValueListpublic OctetListFacade(ValueList comp) throws IncompatibleComponentException
comp - The ValueList that represents the Octet list data.IncompatibleComponentException - Not used.public static ValueList createValueList(byte[][] octets, Syntax syn)
octets - Refer to NDS Schema Reference.syn - The syntax to use, either NDSSyntax.SYN_OCTET_LIST or LDAPSyntax.SYN_OCTET_LIST.public static ValueList createValueList(byte[][] octets)
octets - Refer to NDS Schema Reference.public byte[][] getOctets()
public byte[] getOctet(int index)
throws java.lang.ArrayIndexOutOfBoundsException
index - The index of the octet to retrieve.java.lang.ArrayIndexOutOfBoundsException - index in not in range of list.public void setOctet(byte[] newOctet,
int index)
throws java.lang.ArrayIndexOutOfBoundsException
newOctet - The octet to set.index - The index of the octet to set.java.lang.ArrayIndexOutOfBoundsException - index in not in range of list.public void addOctet(byte[] octet)
octet - The octet to add.public void removeOctet(int index)
throws java.lang.ArrayIndexOutOfBoundsException
index - The index of the octet to remove.java.lang.ArrayIndexOutOfBoundsException - index in not in range of list.public void replaceOctet(byte[] octet,
int index)
throws java.lang.ArrayIndexOutOfBoundsException
octet - The new octet.index - The index of the octet to be replaced.java.lang.ArrayIndexOutOfBoundsException - index in not in range of list.
API Documentation Copyright © 1998-2004 Novell, Inc. All rights reserved.
NDS is a registered trademark of Novell, Inc. in the United States and other countries.
Generated ${TODAY} ${TSTAMP}.