Uses of Class
net.officefloor.server.stream.StreamBuffer
-
-
Uses of StreamBuffer in net.officefloor.server
Methods in net.officefloor.server with parameters of type StreamBuffer Modifier and Type Method Description voidRequestHandler. sendImmediateData(StreamBuffer<java.nio.ByteBuffer> immediateHead)Sends data immediately.voidSocketServicer. service(StreamBuffer<java.nio.ByteBuffer> readBuffer, long bytesRead, boolean isNewBuffer)Services theSocket.voidResponseHeaderWriter. write(StreamBuffer<java.nio.ByteBuffer> head, StreamBufferPool<java.nio.ByteBuffer> bufferPool)Writes the header content.voidResponseWriter. write(ResponseHeaderWriter responseHeaderWriter, StreamBuffer<java.nio.ByteBuffer> headResponseBuffer)Writes theStreamBufferinstances as the response. -
Uses of StreamBuffer in net.officefloor.server.buffer
Methods in net.officefloor.server.buffer with parameters of type StreamBuffer Modifier and Type Method Description voidStreamBufferByteSequence. appendStreamBuffer(StreamBuffer<java.nio.ByteBuffer> buffer, int offset, int length)Appends aStreamBufferto thisByteSequence.voidStreamBufferScanner. appendStreamBuffer(StreamBuffer<java.nio.ByteBuffer> buffer)AppendsStreamBufferfor scanning.Constructors in net.officefloor.server.buffer with parameters of type StreamBuffer Constructor Description StreamBufferByteSequence(StreamBuffer<java.nio.ByteBuffer> buffer, int offset, int length)Instantiate with the firstStreamBuffer. -
Uses of StreamBuffer in net.officefloor.server.http
Methods in net.officefloor.server.http with parameters of type StreamBuffer Modifier and Type Method Description <B> voidHttpHeaderName. write(StreamBuffer<B> head, StreamBufferPool<B> bufferPool)Writes thisHttpHeaderNameto theStreamBuffer.<B> voidHttpHeaderValue. write(StreamBuffer<B> head, StreamBufferPool<B> bufferPool)Writes thisHttpHeaderValueto theStreamBuffer.<B> voidHttpStatus. write(StreamBuffer<B> head, StreamBufferPool<B> bufferPool)Writes thisHttpStatusto theStreamBuffer.<B> voidHttpVersion. write(StreamBuffer<B> head, StreamBufferPool<B> bufferPool)Writes thisHttpStatusto theStreamBuffer.<B> voidWritableHttpCookie. write(StreamBuffer<B> head, StreamBufferPool<B> bufferPool)Writes this HTTP Cookie to theStreamBufferstream.<B> voidWritableHttpHeader. write(StreamBuffer<B> head, StreamBufferPool<B> bufferPool)Writes thisHttpHeaderto theStreamBuffer.<B> voidHttpException. writeHttpResponse(HttpVersion version, boolean isIncludeStackTrace, StreamBuffer<B> head, StreamBufferPool<B> bufferPool)Writes the HTTP response for thisHttpException.voidHttpResponseWriter. writeHttpResponse(HttpVersion version, HttpStatus status, WritableHttpHeader headHttpHeader, WritableHttpCookie headHttpCookie, long contentLength, HttpHeaderValue contentType, StreamBuffer<B> contentHeadStreamBuffer)Writes theHttpResponse. -
Uses of StreamBuffer in net.officefloor.server.http.mock
Methods in net.officefloor.server.http.mock that return StreamBuffer Modifier and Type Method Description StreamBuffer<java.nio.ByteBuffer>MockStreamBufferPool. getFileStreamBuffer(java.nio.channels.FileChannel file, long position, long count, FileCompleteCallback callback)StreamBuffer<java.nio.ByteBuffer>MockStreamBufferPool. getPooledStreamBuffer()StreamBuffer<java.nio.ByteBuffer>MockStreamBufferPool. getUnpooledStreamBuffer(java.nio.ByteBuffer byteBuffer)Methods in net.officefloor.server.http.mock with parameters of type StreamBuffer Modifier and Type Method Description static java.io.InputStreamMockStreamBufferPool. createInputStream(StreamBuffer<java.nio.ByteBuffer> headBuffer)Creates anInputStreamto the content of theStreamBufferinstances.static java.lang.StringMockStreamBufferPool. getContent(StreamBuffer<java.nio.ByteBuffer> headBuffer, java.nio.charset.Charset charset)Convenience method to obtain the contents of the buffers as a string.static voidMockStreamBufferPool. releaseStreamBuffers(StreamBuffer<java.nio.ByteBuffer> headBuffer)Releases theStreamBufferinstances. -
Uses of StreamBuffer in net.officefloor.server.http.netty
Subclasses of StreamBuffer in net.officefloor.server.http.netty Modifier and Type Class Description classNettyBufferPoolNettyStreamBufferPool.Methods in net.officefloor.server.http.netty that return StreamBuffer Modifier and Type Method Description StreamBuffer<io.netty.buffer.ByteBuf>NettyBufferPool. getFileStreamBuffer(java.nio.channels.FileChannel file, long position, long count, FileCompleteCallback callback)StreamBuffer<io.netty.buffer.ByteBuf>NettyBufferPool. getPooledStreamBuffer()StreamBuffer<io.netty.buffer.ByteBuf>NettyBufferPool. getUnpooledStreamBuffer(java.nio.ByteBuffer buffer) -
Uses of StreamBuffer in net.officefloor.server.http.servlet
Methods in net.officefloor.server.http.servlet with parameters of type StreamBuffer Modifier and Type Method Description voidHttpServletHttpResponseWriter. writeHttpResponse(HttpVersion version, HttpStatus status, WritableHttpHeader headHttpHeader, WritableHttpCookie headHttpCookie, long contentLength, HttpHeaderValue contentType, StreamBuffer<java.nio.ByteBuffer> contentHeadStreamBuffer) -
Uses of StreamBuffer in net.officefloor.server.stream
Fields in net.officefloor.server.stream declared as StreamBuffer Modifier and Type Field Description StreamBuffer<B>StreamBuffer. nextNextStreamBufferin the stream.Methods in net.officefloor.server.stream that return StreamBuffer Modifier and Type Method Description StreamBuffer<B>StreamBufferPool. getFileStreamBuffer(java.nio.channels.FileChannel file, long position, long count, FileCompleteCallback callback)Obtains aStreamBufferfor theFileChannelcontent.StreamBuffer<B>StreamBufferPool. getPooledStreamBuffer()Obtains aStreamBuffer.StreamBuffer<B>StreamBufferPool. getUnpooledStreamBuffer(java.nio.ByteBuffer buffer)Obtains anStreamBufferthat is not pooled.static <B> StreamBuffer<B>StreamBuffer. getWriteStreamBuffer(StreamBuffer<B> headBuffer, StreamBufferPool<B> bufferPool)Obtains theStreamBufferto use for writing.static <B> StreamBuffer<B>StreamBuffer. writeByte(byte character, StreamBuffer<B> writeBuffer, StreamBufferPool<B> bufferPool)Writes a HTTP encoded character.Methods in net.officefloor.server.stream with parameters of type StreamBuffer Modifier and Type Method Description static <B> java.lang.AppendableStreamBuffer. getAppendable(StreamBuffer<B> headBuffer, StreamBufferPool<B> bufferPool)Obtains anAppendableto write to theStreamBufferstream.static <B> StreamBuffer<B>StreamBuffer. getWriteStreamBuffer(StreamBuffer<B> headBuffer, StreamBufferPool<B> bufferPool)Obtains theStreamBufferto use for writing.static <B> voidStreamBuffer. write(byte[] bytes, int offset, int length, StreamBuffer<B> headBuffer, StreamBufferPool<B> bufferPool)Writes the bytes to theStreamBufferstream.static <B> voidStreamBuffer. write(byte[] bytes, StreamBuffer<B> headBuffer, StreamBufferPool<B> bufferPool)Writes all the bytes to theStreamBufferstream.static <B> voidStreamBuffer. write(long value, StreamBuffer<B> head, StreamBufferPool<B> bufferPool)Writes a long value to theStreamBuffer.static <B> voidStreamBuffer. write(java.lang.CharSequence characters, int offset, int length, StreamBuffer<B> headBuffer, StreamBufferPool<B> bufferPool)Writes theCharSequenceto theStreamBufferstream.static <B> voidStreamBuffer. write(java.lang.CharSequence characters, StreamBuffer<B> headBuffer, StreamBufferPool<B> bufferPool)Writes all theCharSequenceto theStreamBufferstream.static <B> StreamBuffer<B>StreamBuffer. writeByte(byte character, StreamBuffer<B> writeBuffer, StreamBufferPool<B> bufferPool)Writes a HTTP encoded character. -
Uses of StreamBuffer in net.officefloor.server.stream.impl
Subclasses of StreamBuffer in net.officefloor.server.stream.impl Modifier and Type Class Description protected classAbstractStreamBufferPool.FileStreamBufferFileChannelStreamBuffer.protected classAbstractStreamBufferPool.UnpooledStreamBufferUnpooledStreamBuffer.Methods in net.officefloor.server.stream.impl that return StreamBuffer Modifier and Type Method Description StreamBuffer<B>BufferPoolServerOutputStream. getBuffers()Obtains the headStreamBufferinstances used by thisServerOutputStream.StreamBuffer<B>AbstractStreamBufferPool. getFileStreamBuffer(java.nio.channels.FileChannel file, long position, long count, FileCompleteCallback callback)StreamBuffer<java.nio.ByteBuffer>ThreadLocalStreamBufferPool. getPooledStreamBuffer()=============== BufferPool ===========================StreamBuffer<B>AbstractStreamBufferPool. getUnpooledStreamBuffer(java.nio.ByteBuffer buffer)
-