public class DirectoryResourceHandler extends Object implements org.apache.maven.index.reader.WritableResourceHandler
File directory handler that does not perform any locking or extra bits, and just serves up files
by name from specified existing directory.| Constructor and Description |
|---|
DirectoryResourceHandler(File rootDirectory) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
File |
getRootDirectory() |
org.apache.maven.index.reader.WritableResourceHandler.WritableResource |
locate(String name) |
public DirectoryResourceHandler(File rootDirectory)
public File getRootDirectory()
public org.apache.maven.index.reader.WritableResourceHandler.WritableResource locate(String name) throws IOException
locate in interface org.apache.maven.index.reader.ResourceHandlerlocate in interface org.apache.maven.index.reader.WritableResourceHandlerIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2002–2022 The Apache Software Foundation. All rights reserved.