public class StreamAndStringTools extends Object
| Constructor and Description |
|---|
StreamAndStringTools() |
| Modifier and Type | Method and Description |
|---|---|
static void |
copy(InputStream is,
OutputStream os) |
static String |
encodeBase64(byte[] bytes) |
static InputStream |
toInputStream(String content,
String charset) |
static String |
toString(InputStream is,
String charset) |
static void |
write(String content,
OutputStream os,
String charset) |
public static String toString(InputStream is, String charset) throws IOException
IOExceptionpublic static void write(String content, OutputStream os, String charset) throws IOException
IOExceptionpublic static InputStream toInputStream(String content, String charset) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic static void copy(InputStream is, OutputStream os) throws IOException
IOExceptionpublic static String encodeBase64(byte[] bytes) throws UnsupportedEncodingException
UnsupportedEncodingExceptionCopyright © 2017 Peter Helmich. All rights reserved.