Interface UploadedFile
-
@Deprecated public interface UploadedFileDeprecated.This class represents an uploaded file.- Version:
- $Id: UploadedFile.java#1 $
- Author:
- Harald Kuhr
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.lang.StringgetContentType()Deprecated.Returns the content type of the file.java.io.InputStreamgetInputStream()Deprecated.Returns the file data, as anInputStream.java.lang.StringgetName()Deprecated.Returns the original file name (from client).longlength()Deprecated.Returns the length of file, in bytes.voidwriteTo(java.io.File pFile)Deprecated.Writes the file data to the givenFile.
-
-
-
Method Detail
-
length
long length()
Deprecated.Returns the length of file, in bytes.- Returns:
- length of file
-
getName
java.lang.String getName()
Deprecated.Returns the original file name (from client).- Returns:
- original name
-
getContentType
java.lang.String getContentType()
Deprecated.Returns the content type of the file.- Returns:
- the content type
-
getInputStream
java.io.InputStream getInputStream() throws java.io.IOExceptionDeprecated.Returns the file data, as anInputStream. The file data may be read from disk, or from an in-memory source, depending on implementation.- Returns:
- an
InputStreamcontaining the file data - Throws:
java.io.IOExceptionjava.lang.RuntimeException
-
writeTo
void writeTo(java.io.File pFile) throws java.io.IOExceptionDeprecated.Writes the file data to the givenFile. Note that implementations are free to optimize this to a rename operation, if the file is allready cached to disk.- Parameters:
pFile- theFile(file name) to write to.- Throws:
java.io.IOExceptionjava.lang.RuntimeException
-
-