| 1 | /* |
| 2 | * Copyright (C) 2016. |
| 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.mps; |
| 14 | |
| 15 | import uk.me.parabola.io.FileBlock; |
| 16 | |
| 17 | public abstract class MpsBlock extends FileBlock { |
| 18 | private final int codePage; |
| 19 | |
| 20 | public MpsBlock(int kind, int codePage) { |
| 21 | super(kind); |
| 22 | this.codePage = codePage; |
| 23 | } |
| 24 | |
| 25 | public int getCodePage() { |
| 26 | return codePage; |
| 27 | } |
| 28 | } |