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 ByteBuffer
createBasicByteBuffer(String input)
byte[]
readInputStreamToByteArray(javax.servlet.ServletRequest request)
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)
-
readInputStreamToByteArray
public byte[] readInputStreamToByteArray(javax.servlet.ServletRequest request)
-
writeToOutputStream
public void writeToOutputStream(byte[] data, javax.servlet.ServletResponse response)
-
createBasicByteBuffer
public static ByteBuffer createBasicByteBuffer(String input)
-
-