ByteListImplpublic class ByteListImpl extends Object implements ByteListImplementation of com.sun.org.apache.xerces.internal.xs.datatypes.ByteList . |
Fields Summary |
---|
protected final byte[] | data | protected String | canonical |
Constructors Summary |
---|
public ByteListImpl(byte[] data)
this.data = data;
|
Methods Summary |
---|
public boolean | contains(byte item)Checks if the byte item is a
member of this list.
for (int i = 0; i < data.length; ++i) {
if (data[i] == item) {
return true;
}
}
return false;
| public int | getLength()The number of byte s in the list. The range of
valid child object indices is 0 to length-1 inclusive.
return data.length;
| public byte | item(int index)Returns the index th item in the collection. The index
starts at 0.
if(index < 0 || index > data.length - 1) {
throw new XSException(XSException.INDEX_SIZE_ERR, null);
}
return data[index];
|
|