Debian Codegraph @

src/uk/me/parabola/imgfmt/app/lbl/Zip.java

raw symbols SCIP
1 /*
2 * Copyright (C) 2007 Steve Ratcliffe
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 2 as
6 * published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 *
14 * Author: Steve Ratcliffe
15 * Create date: Jan 1, 2008
16 */
17 package uk.me.parabola.imgfmt.app.lbl;
18
19 import uk.me.parabola.imgfmt.app.ImgFileWriter;
20 import uk.me.parabola.imgfmt.app.Label;
21
22 /**
23 * A zip or postal code record.
24 *
25 * @author Steve Ratcliffe
26 */
27 public class Zip {
28 // The index is not stored in the file, you just use the index of it in
29 // the section.
30 private int index;
31 private final Label label;
32
33 public Zip(Label label) {
34 this.label = label;
35 }
36
37 public void write(ImgFileWriter writer) {
38 writer.put3u(label.getOffset());
39 }
40
41 public Label getLabel() {
42 return label;
43 }
44
45 public int getIndex() {
46 return index;
47 }
48
49 public void setIndex(int index) {
50 this.index = index;
51 }
52 }