| 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: 14-Jan-2007 |
| 16 | */ |
| 17 | package uk.me.parabola.imgfmt.app.labelenc; |
| 18 | |
| 19 | /** |
| 20 | * Interface for encoding characters for use in the Label section of a .img |
| 21 | * file. |
| 22 | * |
| 23 | * Older units are only able to display uppercase ascii characters. Newer ones |
| 24 | * can also display latin1 characters and perhaps lowercase too. I believe |
| 25 | * that it is possible to buy Japanese units that display Japanese characters |
| 26 | * too. |
| 27 | * |
| 28 | * So we need different implementations to deal with all this. It is made |
| 29 | * harder because the possibilities are not known. Many experimental |
| 30 | * implementations may be needed before settling on a good one. |
| 31 | * |
| 32 | * @author Steve Ratcliffe |
| 33 | */ |
| 34 | public interface CharacterEncoder { |
| 35 | |
| 36 | public EncodedText encodeText(String text); |
| 37 | } |