23 private String[] strings;
25 public VMFString(DataInputStream in)
throws IOException
27 strings =
new String[in.readInt()];
28 for (
int i = 0; i < strings.length; i++) {
29 strings[i] = in.readUTF();
34 this.strings = strings;
37 public void write(DataOutputStream out)
throws IOException
39 out.writeInt(strings.length);
40 for (
int i = 0; i < strings.length; i++) {
41 out.writeUTF(strings[i]);
45 public byte getType() {
return MFSTRING; }
47 public String[] getValue() {
return strings; }
48 public String get1Value(
int pos) {
return strings[pos]; }
50 public String toString() {
52 for (
int i = 0; i < strings.length; i++) {
53 if (i != 0) str +=
", ";
54 str +=
"\"" + strings[i] +
"\"";