Package com.iizix.comm
Class WSUploadPart
- java.lang.Object
- com.iizix.comm.WSUploadPart
public class WSUploadPart extends java.lang.Object
Class holding the part that is about a file to be uploaded in the web server.- Author:
- Christopher Mindus
Constructor Summary
Constructors Constructor Description WSUploadPart(java.lang.String fileName, java.lang.String name, long size)
Constructor.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.File
getFile()
Gets the file written on disk.void
onWritten(java.io.File file)
Called when the file has been written to disk.java.lang.String
toString()
Outputs to string.
Method Detail
onWritten
public void onWritten(java.io.File file)
Called when the file has been written to disk.- Parameters:
file
- The file written.- Throws:
java.lang.IllegalStateException
- If already called.java.lang.NullPointerException
- If file is null.
getFile
public java.io.File getFile()
Gets the file written on disk.- Returns:
- The file, or null if not yet written.
toString
public java.lang.String toString()
Outputs to string.- Overrides:
toString
in classjava.lang.Object