class FixedChunkedStream extends ChunkedInput[ByteBuf]
A ChunkedInput that fetches data from an InputStream chunk by chunk.
Please note that the InputStream instance that feeds data into ChunkedStream
must implement InputStream#available() as accurately as possible, rather than using the
default implementation. Otherwise, ChunkedStream will generate many too small chunks or
block unnecessarily often.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- FixedChunkedStream
- ChunkedInput
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new FixedChunkedStream(in: InputStream, chunkSize: Int)
Creates a new instance that fetches data from the specified stream.
Creates a new instance that fetches data from the specified stream.
- chunkSize
the number of bytes to fetch on each
#readChunk(ChannelHandlerContext)call
- new FixedChunkedStream(in: InputStream)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def close(): Unit
- Definition Classes
- FixedChunkedStream → ChunkedInput
- Annotations
- @Override()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def isEndOfInput(): Boolean
- Definition Classes
- FixedChunkedStream → ChunkedInput
- Annotations
- @Override()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def length(): Long
- Definition Classes
- FixedChunkedStream → ChunkedInput
- Annotations
- @Override()
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def progress(): Long
- Definition Classes
- FixedChunkedStream → ChunkedInput
- Annotations
- @Override()
- def readChunk(allocator: ByteBufAllocator): ByteBuf
- Definition Classes
- FixedChunkedStream → ChunkedInput
- Annotations
- @Override()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def transferredBytes(): Long
Returns the number of transferred bytes.
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Deprecated Value Members
- def readChunk(ctx: ChannelHandlerContext): ByteBuf
- Definition Classes
- FixedChunkedStream → ChunkedInput
- Annotations
- @Deprecated @Override()
- Deprecated