public class DirectoryOutputLocator extends Object implements OutputLocator
Constructor and Description |
---|
DirectoryOutputLocator(File directory) |
DirectoryOutputLocator(File directory,
long sourceLastModified) |
Modifier and Type | Method and Description |
---|---|
OutputStream |
getOutputStream(String resourcePath)
Returns a writer for the file at this path.
|
boolean |
isUptodate(String resourcePath)
Checks if the output is up to date.
|
public DirectoryOutputLocator(File directory)
public DirectoryOutputLocator(File directory, long sourceLastModified)
public OutputStream getOutputStream(String resourcePath) throws IOException
OutputLocator
getOutputStream
in interface OutputLocator
resourcePath
- the path of the file to writeIOException
public boolean isUptodate(String resourcePath)
OutputLocator
isUptodate
in interface OutputLocator
resourcePath
- the path of the file to write.Copyright © 2001-2016 The Apache Software Foundation. All Rights Reserved.