类 PartGenerator.CreateFileState
java.lang.Object
cn.taketoday.http.codec.multipart.PartGenerator.State
cn.taketoday.http.codec.multipart.PartGenerator.CreateFileState
- 封闭类:
- PartGenerator
The creator state when waiting for a temporary file to be created.
PartGenerator.InMemoryState initially switches to this state when the byte
count exceeds PartGenerator.maxInMemorySize, and then calls
createFile() to switch to PartGenerator.WritingFileState.-
字段概要
字段修饰符和类型字段说明private final longprivate booleanprivate final Collection<cn.taketoday.core.io.buffer.DataBuffer>private final HttpHeadersprivate boolean -
构造器概要
构造器构造器说明CreateFileState(HttpHeaders headers, Collection<cn.taketoday.core.io.buffer.DataBuffer> content, long byteCount) -
方法概要
修饰符和类型方法说明voidapplyBody(cn.taketoday.core.io.buffer.DataBuffer dataBuffer) Invoked when aMultipartParser.BodyTokenis received.voidprivate PartGenerator.WritingFileStatecreateFileState(Path directory) voiddispose()Cleans up any state.private voidfileCreated(PartGenerator.WritingFileState newState) voidInvoked when all tokens for the part have been received.toString()从类继承的方法 cn.taketoday.http.codec.multipart.PartGenerator.State
error
-
字段详细资料
-
headers
-
-
byteCount
private final long byteCount -
completed
private volatile boolean completed -
releaseOnDispose
private volatile boolean releaseOnDispose
-
-
构造器详细资料
-
CreateFileState
public CreateFileState(HttpHeaders headers, Collection<cn.taketoday.core.io.buffer.DataBuffer> content, long byteCount)
-
-
方法详细资料
-
applyBody
public void applyBody(cn.taketoday.core.io.buffer.DataBuffer dataBuffer) 从类复制的说明:PartGenerator.StateInvoked when aMultipartParser.BodyTokenis received.- 指定者:
applyBody在类中PartGenerator.State
-
onComplete
public void onComplete()从类复制的说明:PartGenerator.StateInvoked when all tokens for the part have been received.- 覆盖:
onComplete在类中PartGenerator.State
-
createFile
public void createFile() -
createFileState
-
fileCreated
-
dispose
public void dispose()从类复制的说明:PartGenerator.StateCleans up any state.- 覆盖:
dispose在类中PartGenerator.State
-
toString
-