Debian Codegraph @

src/uk/me/parabola/imgfmt/app/mdr/Mdr6Record.java

raw symbols SCIP
1 /*
2 * Copyright (C) 2009.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 3 or
6 * version 2 as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * General Public License for more details.
12 */
13 package uk.me.parabola.imgfmt.app.mdr;
14
15 import uk.me.parabola.imgfmt.app.lbl.Zip;
16
17 /**
18 * Holds information about a zip that will make its way into mdr 6.
19 *
20 * @author WanMil
21 */
22 public class Mdr6Record extends RecordBase implements NamedRecord {
23 /** The zip index within its own map */
24 private final int zipIndex;
25
26 private final String name;
27 private int stringOffset;
28
29 public Mdr6Record(Zip zip) {
30 zipIndex = zip.getIndex();
31 name = zip.getLabel().getText();
32 }
33
34 public int getZipIndex() {
35 return zipIndex;
36 }
37
38 public String getName() {
39 return name;
40 }
41
42 public int getStringOffset() {
43 return stringOffset;
44 }
45
46 public void setStringOffset(int stringOffset) {
47 this.stringOffset = stringOffset;
48 }
49 }