Klasse Chunk
java.lang.Object
org.apache.sling.servlets.post.impl.helper.Chunk
Chunk encapsulates all chunk upload attributes.- Seit:
- 2.3.4
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibunglongReturn length of the file parameter.longReturn offset of the chunk.booleanReturn true if request contains last chunk as a result upload should be finished.voidsetCompleted(boolean complete) Set complete flagvoidsetLength(long length) Set length of file parameter.voidsetOffsetValue(long offset) Set offset value.
-
Konstruktordetails
-
Chunk
public Chunk()
-
-
Methodendetails
-
getOffset
public long getOffset()Return offset of the chunk.- Gibt zurück:
- the offset
-
setOffsetValue
public void setOffsetValue(long offset) Set offset value.- Parameter:
offset- the offset
-
getLength
public long getLength()Return length of the file parameter.- Gibt zurück:
- the length
-
setLength
public void setLength(long length) Set length of file parameter.- Parameter:
length- the length
-
isCompleted
public boolean isCompleted()Return true if request contains last chunk as a result upload should be finished. It is useful in scenarios where file streaming where file size is not known in advance.- Gibt zurück:
- if the chunk is completed
-
setCompleted
public void setCompleted(boolean complete) Set complete flag- Parameter:
complete- the complete flag
-