public static class TAMEModule.Header extends java.lang.Object implements Saveable
| Constructor and Description |
|---|
Header()
Creates a new module header.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(java.lang.String attribute,
java.lang.String value)
Adds an attribute to the module.
|
java.lang.String[] |
getAllAttributes()
Gets all of this module header's attributes.
|
java.lang.String |
getAttribute(java.lang.String attribute)
Gets an attribute value from the module.
|
com.tameif.tame.struct.CaseInsensitiveStringMap<java.lang.String> |
getAttributeMap()
Gets the attribute map for the header.
|
void |
readBytes(java.io.InputStream in)
Imports this object from bytes.
|
void |
writeBytes(java.io.OutputStream out)
Exports this object to bytes.
|
public void addAttribute(java.lang.String attribute,
java.lang.String value)
attribute - the attribute name.value - the value.public java.lang.String getAttribute(java.lang.String attribute)
attribute - the attribute name.public java.lang.String[] getAllAttributes()
public com.tameif.tame.struct.CaseInsensitiveStringMap<java.lang.String> getAttributeMap()
public void writeBytes(java.io.OutputStream out)
throws java.io.IOException
SaveablewriteBytes in interface Saveableout - the output stream to write to.java.io.IOException - if a write problem occurs.public void readBytes(java.io.InputStream in)
throws java.io.IOException
Saveable