Package org.mockserver.streams
Class IOStreamUtils
- java.lang.Object
-
- org.mockserver.streams.IOStreamUtils
-
public class IOStreamUtils extends Object
- Author:
- jamesdbloom
-
-
Constructor Summary
Constructors Constructor Description IOStreamUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ByteBuffer
createBasicByteBuffer(String input)
static byte[]
readInputStreamToByteArray(javax.servlet.ServletRequest request)
static String
readInputStreamToString(Socket socket)
static String
readInputStreamToString(javax.servlet.ServletRequest request)
static void
writeToOutputStream(byte[] data, javax.servlet.ServletResponse response)
-
-
-
Method Detail
-
readInputStreamToString
public static String readInputStreamToString(Socket socket) throws IOException
- Throws:
IOException
-
readInputStreamToString
public static String readInputStreamToString(javax.servlet.ServletRequest request)
-
readInputStreamToByteArray
public static byte[] readInputStreamToByteArray(javax.servlet.ServletRequest request)
-
writeToOutputStream
public static void writeToOutputStream(byte[] data, javax.servlet.ServletResponse response)
-
createBasicByteBuffer
public static ByteBuffer createBasicByteBuffer(String input)
-
-