public class ISO8859_1 extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
decoded
Decode byte array after call to decode method.
|
byte[] |
encoded
Encoded string after call to encode method.
|
static byte[] |
validBytes
Array of valid bytes according to the ISO-8859-1 specification.
|
| Constructor and Description |
|---|
ISO8859_1()
Construct an instance that can be used to convert and validate.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
decode(byte[] inBytes,
java.lang.String exceptions)
Converts a byte array to a string removing invalid characters in the
process and returning the validity status.
|
boolean |
encode(java.lang.String inStr,
java.lang.String exceptions)
Converts a string to a byte array removing invalid characters in the
process and returning the validity status.
|
public static final byte[] validBytes
public byte[] encoded
public java.lang.String decoded
public ISO8859_1()
public boolean encode(java.lang.String inStr, java.lang.String exceptions)
inStr - string to be converted and validatedexceptions - invalid characters which are allowedpublic boolean decode(byte[] inBytes, java.lang.String exceptions)
inBytes - byte array to be converted and validatedexceptions - invalid characters which are allowedCopyright © 2011–2023. All rights reserved.