public class StreamUtil extends Object
| Constructor and Description |
|---|
StreamUtil() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
compress(byte[] data) |
static byte[] |
decompress(byte[] compressed) |
static byte[] |
toBytes(InputStream in) |
static byte[] |
toBytes(int i) |
static byte[] |
toBytes(Object obj) |
public static byte[] toBytes(InputStream in) throws ServiceException
ServiceExceptionpublic static byte[] toBytes(Object obj) throws ServiceException
ServiceExceptionpublic static byte[] toBytes(int i)
public static byte[] compress(byte[] data)
public static byte[] decompress(byte[] compressed)
Copyright © 2018. All rights reserved.