public class StiPacker
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
allowPacking |
| Constructor and Description |
|---|
StiPacker() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isPacked(int[] bytes)
Returns true if the specified byte array is packed.
|
static byte[] |
pack(byte[] bytes)
Packs the byte array.
|
static java.lang.String |
packAndEncryptToString(byte[] bytes)
Packs and encrypts the byte array to the byte64 string.
|
static byte[] |
unpack(int[] bytes)
Unpacks byte array.
|
static byte[] |
unpackAndDecrypt(java.lang.String str)
Unpacks and uncrypts byte array from base64 string.
|
public static byte[] pack(byte[] bytes)
throws java.io.IOException
bytes - java.io.IOExceptionpublic static byte[] unpackAndDecrypt(java.lang.String str)
throws java.security.NoSuchAlgorithmException
str - java.security.NoSuchAlgorithmExceptionpublic static byte[] unpack(int[] bytes)
bytes - public static boolean isPacked(int[] bytes)
bytes - public static java.lang.String packAndEncryptToString(byte[] bytes)
throws java.io.IOException,
java.security.NoSuchAlgorithmException
bytes - java.io.IOExceptionjava.security.NoSuchAlgorithmExceptionCopyright © 2020 Stimulsoft. All Rights Reserved.