Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 1613 → Rev 1614

/dongfang_FC_rewrite_tool/src/dongfang/mkt/configuration/StaticByteEntry.java
0,0 → 1,33
package dongfang.mkt.configuration;
 
public class StaticByteEntry extends ParameterEntry {
StaticByteEntry(String name) {
super(name);
}
 
int value;
 
int getByteCount() {
return 1;
}
 
int getValue() {
return value;
}
 
int setValue(int[] data, int offset) {
this.value = data[offset];
return getByteCount();
}
 
String toStringWithValues() {
return name + ":\t" + value;
}
 
void toXML(StringBuilder result) {
String s_value;
s_value = Integer.toString(value);
result.append(" <parameter name=\"" + name + "\" value=\""
+ s_value + "\"/>\n");
}
}