Methods Summary |
---|
public int | byteLength(){@inheritDoc}
int sz = size();
int result = 2; // u2 attributes_count
for (int i = 0; i < sz; i++) {
result += get(i).byteLength();
}
return result;
|
public Attribute | findFirst(java.lang.String name){@inheritDoc}
int sz = size();
for (int i = 0; i < sz; i++) {
Attribute att = get(i);
if (att.getName().equals(name)) {
return att;
}
}
return null;
|
public Attribute | findNext(Attribute attrib){@inheritDoc}
int sz = size();
int at;
outer: {
for (at = 0; at < sz; at++) {
Attribute att = get(at);
if (att == attrib) {
break outer;
}
}
return null;
}
String name = attrib.getName();
for (at++; at < sz; at++) {
Attribute att = get(at);
if (att.getName().equals(name)) {
return att;
}
}
return null;
|
public Attribute | get(int n){@inheritDoc}
return (Attribute) get0(n);
|
public void | set(int n, Attribute attribute)Sets the attribute at the given index.
set0(n, attribute);
|