es.ucm.look.data.filesManager
Class LookFilesManager

java.lang.Object
  extended by es.ucm.look.data.filesManager.LookFilesManager

public class LookFilesManager
extends java.lang.Object

A file manager for accessing binary files remotely


Method Summary
static LookFilesManager getFileManager()
          Method singleton to access a unique instance of LookFilesManager
 Bitmap getImageBitmap(java.lang.String uriFile)
          Returns the bitmap for the given file
 java.io.InputStream getInputStream(java.lang.String uriFile)
          Returns an input stream for a file
 void setDirectory(java.lang.String directory)
          Set the basis directory for the file manager
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFileManager

public static LookFilesManager getFileManager()
Method singleton to access a unique instance of LookFilesManager

Returns:

getImageBitmap

public Bitmap getImageBitmap(java.lang.String uriFile)
Returns the bitmap for the given file

Parameters:
uriFile - the uri file
Returns:
the bitmap

getInputStream

public java.io.InputStream getInputStream(java.lang.String uriFile)
Returns an input stream for a file

Parameters:
uriFile - uri file
Returns:
the input stream

setDirectory

public void setDirectory(java.lang.String directory)
Set the basis directory for the file manager

Parameters:
directory - the basis directory