类 PartGenerator.InMemoryState
java.lang.Object
cn.taketoday.http.codec.multipart.PartGenerator.State
cn.taketoday.http.codec.multipart.PartGenerator.InMemoryState
- 封闭类:
- PartGenerator
The creator state when
PartGenerator.streaming is false (and not
handling a form field). Stores all received buffers in a queue.
If the byte count exceeds PartGenerator.maxInMemorySize, the creator state
is changed to PartGenerator.CreateFileState, and eventually to
PartGenerator.CreateFileState.-
字段概要
字段修饰符和类型字段说明private final AtomicLongprivate final ConcurrentLinkedQueue<cn.taketoday.core.io.buffer.DataBuffer>private final HttpHeadersprivate boolean -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidapplyBody(cn.taketoday.core.io.buffer.DataBuffer dataBuffer) Invoked when aMultipartParser.BodyTokenis received.voiddispose()Cleans up any state.private voidvoidInvoked when all tokens for the part have been received.private voidstoreBuffer(cn.taketoday.core.io.buffer.DataBuffer dataBuffer) private voidswitchToFile(cn.taketoday.core.io.buffer.DataBuffer current, long byteCount) toString()从类继承的方法 cn.taketoday.http.codec.multipart.PartGenerator.State
error
-
字段详细资料
-
headers
-
releaseOnDispose
private volatile boolean releaseOnDispose -
byteCount
-
-
-
构造器详细资料
-
InMemoryState
-
-
方法详细资料
-
applyBody
public void applyBody(cn.taketoday.core.io.buffer.DataBuffer dataBuffer) 从类复制的说明:PartGenerator.StateInvoked when aMultipartParser.BodyTokenis received.- 指定者:
applyBody在类中PartGenerator.State
-
storeBuffer
private void storeBuffer(cn.taketoday.core.io.buffer.DataBuffer dataBuffer) -
switchToFile
private void switchToFile(cn.taketoday.core.io.buffer.DataBuffer current, long byteCount) -
onComplete
public void onComplete()从类复制的说明:PartGenerator.StateInvoked when all tokens for the part have been received.- 覆盖:
onComplete在类中PartGenerator.State
-
emitMemoryPart
private void emitMemoryPart() -
dispose
public void dispose()从类复制的说明:PartGenerator.StateCleans up any state.- 覆盖:
dispose在类中PartGenerator.State
-
toString
-