public final class RandomMediaFromDirectory extends Object implements Media, MediaSingle
| Constructor and Description |
|---|
RandomMediaFromDirectory(Path directory)
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
Path |
file()
Locates the files
Path that match a certain criteria. |
List<Path> |
files()
Locates the files
Path that match a certain criteria. |
public RandomMediaFromDirectory(Path directory)
directory - Path to dir with files.public List<Path> files() throws IOException
MediaPath that match a certain criteria.
(See decorator classes)files in interface MediaPaths.IOException - If a certain criteria is not fulfilled.public Path file() throws IOException
MediaSinglePath that match a certain criteria.
(See decorator classes)file in interface MediaSinglePaths.IOException - If a certain criteria is not fulfilled.Copyright © 2017–2018 jcabi.com. All rights reserved.