com.groupdocs.viewer.handlers
Class FileHandler

java.lang.Object
  extended by com.groupdocs.viewer.handlers.DirectoryHandler
      extended by com.groupdocs.viewer.handlers.FileHandler

public class FileHandler
extends DirectoryHandler

Provide functionality to work with configured files directory

Author:
Alex Bobkov

Constructor Summary
FileHandler(String path)
          Constructor with files path parameters
 
Method Summary
 File[] getAllFiles()
          Get list of files from specified directory
 File getFileByName(String fileName)
          Get file by name
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileHandler

public FileHandler(String path)
            throws Exception
Constructor with files path parameters

Parameters:
path - Path to files
Throws:
Exception
Method Detail

getAllFiles

public File[] getAllFiles()
Get list of files from specified directory

Returns:
List of files

getFileByName

public File getFileByName(String fileName)
Get file by name

Parameters:
fileName - Name of the file
Returns:
file


Copyright © 2014. All rights reserved.