public class IOStreamUtils extends Object
Constructor and Description |
---|
IOStreamUtils() |
Modifier and Type | Method and Description |
---|---|
static ByteBuffer |
createBasicByteBuffer(String input) |
static byte[] |
readInputStreamToByteArray(javax.servlet.ServletRequest request) |
static String |
readInputStreamToString(javax.servlet.ServletRequest request) |
static String |
readInputStreamToString(Socket socket) |
static void |
writeToOutputStream(byte[] data,
javax.servlet.ServletResponse response) |
public static String readInputStreamToString(Socket socket) throws IOException
IOException
public static String readInputStreamToString(javax.servlet.ServletRequest request)
public static byte[] readInputStreamToByteArray(javax.servlet.ServletRequest request)
public static void writeToOutputStream(byte[] data, javax.servlet.ServletResponse response)
public static ByteBuffer createBasicByteBuffer(String input)
Copyright © 2018. All rights reserved.