Debian Codegraph @

src/uk/me/parabola/tdbfmt/RBlock.java

raw symbols SCIP
1 /*
2 * Copyright (C) 2008 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: 23-Jun-2008
16 */
17 package uk.me.parabola.tdbfmt;
18
19 import java.io.IOException;
20
21 import uk.me.parabola.io.FileBlock;
22 import uk.me.parabola.io.StructuredOutputStream;
23
24 /**
25 * @author Steve Ratcliffe
26 */
27 public class RBlock extends FileBlock {
28 private static final int BLOCK_ID = 'R';
29
30 private final String previewDescription = "Test preview map";
31
32 public RBlock() {
33 super(BLOCK_ID);
34 }
35
36 public void writeBody(StructuredOutputStream os) throws IOException {
37 os.write(0xc3);
38 os.writeString(previewDescription);
39 }
40 }