public class CompressedItem extends Object
Modifier and Type | Field and Description |
---|---|
protected byte[] |
compressed |
protected boolean |
decompressInToString |
Constructor and Description |
---|
CompressedItem(byte[] compressed,
boolean decompressInToString) |
CompressedItem(String start,
boolean decompressInToString) |
Modifier and Type | Method and Description |
---|---|
static byte[] |
compress(String str) |
String |
decompress() |
static String |
decompress(byte[] compressed) |
byte[] |
getCompressed() |
boolean |
isDecompressInToString() |
void |
setDecompressInToString(boolean decompressInToString) |
String |
toString() |
protected byte[] compressed
protected boolean decompressInToString
public CompressedItem(String start, boolean decompressInToString) throws IOException
IOException
public CompressedItem(byte[] compressed, boolean decompressInToString)
public static byte[] compress(String str) throws IOException
IOException
public static String decompress(byte[] compressed) throws IOException
IOException
public String decompress() throws IOException
IOException
public boolean isDecompressInToString()
public void setDecompressInToString(boolean decompressInToString)
public byte[] getCompressed()
Copyright © 2022. All rights reserved.