public class GenericUtilityMethods extends Object
| Modifier and Type | Method and Description |
|---|---|
static ByteArrayOutputStream |
getOutputStreamFromInputStream(InputStream is)
Returns a ByteArrayOutputStream for the passed input stream.
|
static void |
safeClose(InputStream is)
Closes an input stream after checking for null.
|
public static ByteArrayOutputStream getOutputStreamFromInputStream(InputStream is) throws IOException
is - IOExceptionpublic static void safeClose(InputStream is)
is - Copyright © 2020 SAP. All Rights Reserved.