Class IOUtils
java.lang.Object
com.igormaznitsa.meta.common.utils.IOUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CloseablecloseQuetly(Closeable closeable) Closing quetly any closeable object.static byte[]packData(byte[] data) Pack some binary data.static byte[]unpackData(byte[] data) Unpack binary data packed by the packData method.
-
Constructor Details
-
IOUtils
private IOUtils()
-
-
Method Details
-
packData
-
unpackData
Unpack binary data packed by the packData method.- Parameters:
data- packed data array- Returns:
- unpacked byte array
- Throws:
IllegalArgumentException- it will be thrown if the data has wrong format, global error listeners will be also notified- Since:
- 1.0
- See Also:
-
closeQuetly
-