Class C40Decoder
java.lang.Object
es.gob.jmulticard.card.icao.vdsned.C40Decoder
Decodificador de texto en formato C40.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final char[]
Juego básico de caracteres C40 (con el espacio cambiado a '<').private static final char[]
Juego extendido de caracteres C40. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static String
decode
(byte[] c40encoded) Decodifica un texto en formato C40 según la ISO 16022:2006 (sección 5.2.5.private static int[]
parseTwoBytes
(int firstByte, int secondByte)
-
Field Details
-
C40_BASIC_SET_CHARS
private static final char[] C40_BASIC_SET_CHARSJuego básico de caracteres C40 (con el espacio cambiado a '<'). -
C40_SHIFT2_SET_CHARS
private static final char[] C40_SHIFT2_SET_CHARSJuego extendido de caracteres C40.
-
-
Constructor Details
-
C40Decoder
private C40Decoder()
-
-
Method Details
-
decode
Decodifica un texto en formato C40 según la ISO 16022:2006 (sección 5.2.5. anexo C, y tabla C.1.- Parameters:
c40encoded
- Texto codificado como C40.- Returns:
- Texto decodificado.
- Throws:
IOException
- Si no se puede decodificar el texto o este no estaba en formato C40.
-
parseTwoBytes
private static int[] parseTwoBytes(int firstByte, int secondByte)
-