Class CloudStorage
- java.lang.Object
-
- edu.wisc.library.ocfl.core.validation.storage.CloudStorage
-
-
Constructor Summary
Constructors Constructor Description CloudStorage(CloudClient client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanfileExists(String filePath)Indicates if the file existsList<Listing>listDirectory(String directoryPath, boolean recursive)Return a list of all of the files an directories contained in the specified directory.InputStreamreadFile(String filePath)Streams the content of the specified file
-
-
-
Constructor Detail
-
CloudStorage
public CloudStorage(CloudClient client)
-
-
Method Detail
-
listDirectory
public List<Listing> listDirectory(String directoryPath, boolean recursive)
Description copied from interface:StorageReturn a list of all of the files an directories contained in the specified directory. An empty list is returned if the directory does not exist or has no children. If recursion is specified, then only leaf nodes are returned.- Specified by:
listDirectoryin interfaceStorage- Parameters:
directoryPath- the path to the directory to listrecursive- if children should be recursively listed- Returns:
- list of children
-
fileExists
public boolean fileExists(String filePath)
Description copied from interface:StorageIndicates if the file exists- Specified by:
fileExistsin interfaceStorage- Parameters:
filePath- path to the file- Returns:
- true if it exists
-
readFile
public InputStream readFile(String filePath)
Description copied from interface:StorageStreams the content of the specified file
-
-