public class CompressionHelper extends Object
Constructor and Description |
---|
CompressionHelper() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
compress(String string) |
static Map<String,Object> |
compressResources(Map<String,Object> resources)
Compress all the String resources.
|
static String |
decompress(byte[] input) |
static Map<String,Object> |
uncompressResources(Map<String,Object> resources)
Take a resource map, and if items are marked as compressed, uncompress
them.
|
public static Map<String,Object> compressResources(Map<String,Object> resources)
resources
- the resources mappublic static Map<String,Object> uncompressResources(Map<String,Object> resources)
resources
- the resource mappublic static byte[] compress(String string) throws IOException
IOException
public static String decompress(byte[] input) throws IOException
IOException
Copyright © 2022. All rights reserved.