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.ResourceHandler
locate
in interface org.apache.maven.index.reader.WritableResourceHandler
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.