Package net.officefloor.server.stream
Class StreamBufferUtil
java.lang.Object
net.officefloor.server.stream.StreamBufferUtil
Utility functionality for a
StreamBuffer.- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidwrite(StreamBuffer<ByteBuffer> headBuffer, OutputStream outputStream, StreamBufferPool<ByteBuffer> bufferPool) Writes the chain ofStreamBuffercontent to theOutputStream.
-
Method Details
-
write
public static void write(StreamBuffer<ByteBuffer> headBuffer, OutputStream outputStream, StreamBufferPool<ByteBuffer> bufferPool) throws IOException Writes the chain ofStreamBuffercontent to theOutputStream.- Parameters:
headBuffer- HeadStreamBuffer.outputStream- TargetOutputStream.bufferPool-StreamBufferPool.- Throws:
IOException- If fails to write.
-