public final class NetUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
toByteArray(InputStream inputStream)
Converts the current stream into an array of bytes.
|
static byte[] |
toByteArray(InputStream inputStream,
int directSize)
Converts the current stream into an array of bytes.
|
public static byte[] toByteArray(InputStream inputStream) throws IOException
inputStream - Exact input streamIOException - If error thrownpublic static byte[] toByteArray(InputStream inputStream, int directSize) throws IOException
inputStream - Exact input streamdirectSize - Size of temp bufferIOException - If error thrownCopyright © 2022. All rights reserved.