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(MockServerLogger mockServerLogger)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
readInputStreamToString(Socket socket)
String
readInputStreamToString(javax.servlet.ServletRequest request)
void
writeToOutputStream(byte[] data, javax.servlet.ServletResponse response)
-
-
-
Constructor Detail
-
IOStreamUtils
public IOStreamUtils(MockServerLogger mockServerLogger)
-
-
Method Detail
-
readInputStreamToString
public static String readInputStreamToString(Socket socket) throws IOException
- Throws:
IOException
-
readInputStreamToString
public String readInputStreamToString(javax.servlet.ServletRequest request)
-
writeToOutputStream
public void writeToOutputStream(byte[] data, javax.servlet.ServletResponse response)
-
-