Interface UploadedFile
-
@Deprecated public interface UploadedFile
Deprecated.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.String
getContentType()
Deprecated.Returns the content type of the file.java.io.InputStream
getInputStream()
Deprecated.Returns the file data, as anInputStream
.java.lang.String
getName()
Deprecated.Returns the original file name (from client).long
length()
Deprecated.Returns the length of file, in bytes.void
writeTo(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.IOException
Deprecated.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
InputStream
containing the file data - Throws:
java.io.IOException
java.lang.RuntimeException
-
writeTo
void writeTo(java.io.File pFile) throws java.io.IOException
Deprecated.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.IOException
java.lang.RuntimeException
-
-