Package common.utils
Class StreamUtils
java.lang.Object
common.utils.StreamUtils
Collection of utilities for working with streams.
- Author:
- woodser
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic InputStream
bytesToStream
(byte[] bytes) Converts a byte array to an input stream.
-
Constructor Details
-
StreamUtils
public StreamUtils()
-
-
Method Details
-
bytesToStream
Converts a byte array to an input stream.- Parameters:
bytes
- is the byte[] to convert to an input stream- Returns:
- InputStream is the input stream initialized from the byte array
-