org.gcube.common.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.
 void getHardLink(String linkName)
          The hard link
 long getLength()
          The file length.
 String getMimeType()
          The file mime type.
 String getName()
          The file name.
 String getPublicLink()
          The public link
 void updateInfo()
           
 

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.

getPublicLink

String getPublicLink()
                     throws InternalErrorException
The public link

Returns:
public link
Throws:
InternalErrorException - if an error occurs.

getLength

long getLength()
               throws InternalErrorException
The file length.

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

getHardLink

void getHardLink(String linkName)
                 throws InternalErrorException
The hard link

Throws:
InternalErrorException - if an error occurs.

updateInfo

void updateInfo()
                throws InternalErrorException
Throws:
InternalErrorException


Copyright © 2013. All Rights Reserved.