oracle.adf.view.faces.model
Interface UploadedFile


public interface UploadedFile

Interface that describes the contents of a single file.

See Also:
CoreInputFile

Method Summary
 void dispose()
          Disposes all resources allocated for this file.
 java.lang.String getContentType()
          Returns the MIME type of the file.
 java.lang.String getFilename()
          Returns the filename reported by the client.
 java.io.InputStream getInputStream()
          Returns an InputStream that can be used to read the file.
 long getLength()
          Returns the total length (in bytes) of the file.
 

Method Detail

getFilename

public java.lang.String getFilename()
Returns the filename reported by the client.


getContentType

public java.lang.String getContentType()
Returns the MIME type of the file.


getLength

public long getLength()
Returns the total length (in bytes) of the file.


getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Returns an InputStream that can be used to read the file. This method can be called repeatedly.

java.io.IOException

dispose

public void dispose()
Disposes all resources allocated for this file.



Copyright © 2003-2004 Oracle Corporation. All Rights Reserved.