public class LocalFileStore extends FileStore implements IFileStore
Constructor and Description |
---|
LocalFileStore() |
LocalFileStore(String rootDir)
Convenience constructor
|
Modifier and Type | Method and Description |
---|---|
void |
configure(Properties properties)
Configure the filestore with values from the given properties file.
|
void |
createFolder(String pathName) |
void |
createProject(String projectName,
String path)
Create a target project with the given name.
|
InputStream |
getFileByteContent(String path)
Retrieve the content of the specified file.
|
Reader |
getFileContent(String path)
Retrieve the content of the specified file.
|
void |
log(String message)
Logs a message in a FileStore-appropriate way
|
void |
reset()
Initialize to prepare for gramar application.
|
boolean |
resourceExists(String path)
Answers a boolean indicating that the resource at the given path exists (true) or
that it does not (false)
|
void |
setFileContent(String path,
InputStream stream)
Store the content of the specified file.
|
void |
setFileContent(String path,
Reader reader)
Store the content of the specified file.
|
addUpdate, commit, executeUpdates, free, sameBytes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addUpdate, commit, free, sameBytes
public LocalFileStore()
public LocalFileStore(String rootDir)
rootDir
- public InputStream getFileByteContent(String path) throws NoSuchResourceException
IFileStore
getFileByteContent
in interface IFileStore
NoSuchResourceException
public void setFileContent(String path, InputStream stream) throws NoSuchResourceException
IFileStore
setFileContent
in interface IFileStore
NoSuchResourceException
public Reader getFileContent(String path)
IFileStore
getFileContent
in interface IFileStore
public void setFileContent(String path, Reader reader) throws NoSuchResourceException
IFileStore
setFileContent
in interface IFileStore
NoSuchResourceException
public boolean resourceExists(String path)
IFileStore
resourceExists
in interface IFileStore
public void createProject(String projectName, String path)
IFileStore
createProject
in interface IFileStore
public void createFolder(String pathName) throws NoSuchResourceException
createFolder
in interface IFileStore
NoSuchResourceException
public void reset()
IFileStore
reset
in interface IFileStore
reset
in class FileStore
public void log(String message)
IFileStore
log
in interface IFileStore
public void configure(Properties properties) throws GramarException
IFileStore
configure
in interface IFileStore
configure
in class FileStore
GramarException
Copyright © 2015. All rights reserved.