Class CompressedItem
java.lang.Object
org.broadleafcommerce.common.persistence.transaction.CompressedItem
Simple POJO for storing a String value as a compressed byte array.
- Author:
- Jeff Fischer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected byte[]protected boolean -
Constructor Summary
ConstructorsConstructorDescriptionCompressedItem(byte[] compressed, boolean decompressInToString) CompressedItem(String start, boolean decompressInToString) -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]static Stringdecompress(byte[] compressed) byte[]booleanvoidsetDecompressInToString(boolean decompressInToString) toString()
-
Field Details
-
compressed
protected byte[] compressed -
decompressInToString
protected boolean decompressInToString
-
-
Constructor Details
-
CompressedItem
- Throws:
IOException
-
CompressedItem
public CompressedItem(byte[] compressed, boolean decompressInToString)
-
-
Method Details
-
compress
- Throws:
IOException
-
decompress
- Throws:
IOException
-
decompress
- Throws:
IOException
-
isDecompressInToString
public boolean isDecompressInToString() -
setDecompressInToString
public void setDecompressInToString(boolean decompressInToString) -
getCompressed
public byte[] getCompressed() -
toString
-