public class UtilsBase64
extends java.lang.Object
Utility class for encoding in base 64.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
| Modifier and Type | Class and Description |
|---|---|
class |
UtilsBase64.InputStream
Class for reading the encoded bytes..
|
class |
UtilsBase64.OutputStream
Class for storing the encoded bytes.
|
| Modifier and Type | Field and Description |
|---|---|
static byte |
BAD_ENCODING |
static boolean |
DECODE |
static boolean |
ENCODE |
static byte |
EQUALS_SIGN |
static byte |
EQUALS_SIGN_ENC |
static int |
MAX_LINE_LENGTH |
static byte |
NEW_LINE |
static byte |
WHITE_SPACE_ENC |
| Constructor and Description |
|---|
UtilsBase64()
Constructor method for the class UtilsBase64.java.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decode(byte[] abyte0,
int i,
int j)
Decodes the supplied bytes.
|
byte[] |
decode(java.lang.String s)
Decodes the supplied string.
|
java.lang.String |
encodeBytes(byte[] abyte0)
Encodes the supplied bytes.
|
java.lang.String |
encodeBytes(byte[] abyte0,
int i,
int j)
Encodes the supplied bytes in the specified range.
|
java.lang.String |
encodeObject(java.io.Serializable serializable)
Encodes the supplied object.
|
java.lang.String |
encodeString(java.lang.String s)
Encodes the supplied string.
|
boolean |
isBase64(java.lang.String encodedStr) |
public static final boolean ENCODE
public static final boolean DECODE
public static final int MAX_LINE_LENGTH
public static final byte EQUALS_SIGN
public static final byte NEW_LINE
public static final byte BAD_ENCODING
public static final byte WHITE_SPACE_ENC
public static final byte EQUALS_SIGN_ENC
public UtilsBase64()
public java.lang.String encodeObject(java.io.Serializable serializable)
serializable - Serializable object.public java.lang.String encodeBytes(byte[] abyte0)
abyte0 - Arrays of bytes.public java.lang.String encodeBytes(byte[] abyte0,
int i,
int j)
abyte0 - Array of bytes to encode.i - Started index.j - Finished index.public java.lang.String encodeString(java.lang.String s)
s - string.public byte[] decode(java.lang.String s)
s - Encoded string.public byte[] decode(byte[] abyte0,
int i,
int j)
abyte0 - Bytes to decode.i - Started index.j - Finished index.public boolean isBase64(java.lang.String encodedStr)