org.gcube.portlets.user.homelibrary.home.workspace.folder.items
Interface File

All Known Subinterfaces:
ExternalFile, ExternalImage, ExternalPDFFile, Image, ImageDocument

public interface File

Author:
Federico De Faveri defaveri@isti.cnr.it

Method Summary
 InputStream getData()
          The file data.
 long getLength()
          The file length.
 String getMimeType()
          The file mime type.
 String getName()
          The file name.
 

Method Detail

getName

String getName()
               throws InternalErrorException
The file name.

Returns:
the file name.
Throws:
InternalErrorException - if an error occurs.

getMimeType

String getMimeType()
The file mime type.

Returns:
the f type.

getData

InputStream getData()
                    throws InternalErrorException
The file data.

Returns:
the inputstream representing the data.
Throws:
InternalErrorException - if an error occurs.

getLength

long getLength()
               throws InternalErrorException
The file length.

Returns:
the length.
Throws:
InternalErrorException - if an error occurs.


Copyright © 2013. All Rights Reserved.