Package com.iizix.comm
Class WSUploadPart
java.lang.Object
com.iizix.comm.WSUploadPart
Class holding the part that is about a file to be uploaded in the web server.
- Author:
- Christopher Mindus
Field Summary
Constructor Summary
Method Summary
Field Details
fileName
The file name parsed from the multi-part.name
The part name.size
public final long sizeThe part size in bytes.
Constructor Details
WSUploadPart
Constructor.- Parameters:
fileName
- The file name.name
- The part name.size
- The part size in bytes.
Method Details
onWritten
Called when the file has been written to disk.- Parameters:
file
- The file written.- Throws:
IllegalStateException
- If already called.NullPointerException
- If file is null.
getFile
Gets the file written on disk.- Returns:
- The file, or null if not yet written.
toString
Outputs to string.