public final class Atts
extends java.lang.Object
| Constructor and Description |
|---|
Atts()
Default constructor.
|
Atts(byte[] name,
byte[] string)
Constructor, specifying an initial entry.
|
| Modifier and Type | Method and Description |
|---|---|
Atts |
add(byte[] name,
byte[] string)
Adds the next name/string pair.
|
boolean |
contains(byte[] name)
Checks if the specified name is found.
|
void |
delete(int i)
Deletes the specified entry.
|
int |
get(byte[] name)
Returns the offset to the specified name.
|
byte[] |
name(int i)
Returns the name at the specified index position.
|
Atts |
reset()
Resets the container.
|
int |
size()
Returns the number of attributes.
|
void |
size(int s)
Sets the number of attributes.
|
byte[] |
string(byte[] name)
Returns the string for the specified name, or
null. |
byte[] |
string(int i)
Returns the string at the specified index position.
|
java.lang.String |
toString() |
public Atts()
public Atts(byte[] name,
byte[] string)
name - name to be addedstring - string to be addedpublic Atts add(byte[] name, byte[] string)
name - name to be addedstring - string to be addedpublic void delete(int i)
i - entry offsetpublic boolean contains(byte[] name)
name - name to be foundpublic int get(byte[] name)
name - name to be foundpublic byte[] name(int i)
i - indexpublic byte[] string(int i)
i - indexpublic byte[] string(byte[] name)
null.name - name to be foundpublic int size()
public void size(int s)
s - number of attributespublic Atts reset()
public java.lang.String toString()
toString in class java.lang.Object