public class MemoryFileStore extends FileStore implements IFileStore
Constructor and Description |
---|
MemoryFileStore() |
Modifier and Type | Method and Description |
---|---|
void |
createFolder(String pathName) |
void |
createProject(String projectName,
String altPath)
Create a target project with the given name.
|
void |
free()
Free any cached resources
|
InputStream |
getFileByteContent(String path)
Retrieve the content of the specified file.
|
Reader |
getFileContent(String path)
Retrieve the content of the specified file.
|
ArrayList<String> |
getLogs() |
void |
log(String message)
Logs a message in a FileStore-appropriate way
|
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, configure, executeUpdates, reset, sameBytes
public Reader getFileContent(String path) throws NoSuchResourceException
IFileStore
getFileContent
in interface IFileStore
NoSuchResourceException
public void setFileContent(String path, Reader reader) throws NoSuchResourceException, IOException
IFileStore
setFileContent
in interface IFileStore
NoSuchResourceException
IOException
public boolean resourceExists(String path)
IFileStore
resourceExists
in interface IFileStore
public void createProject(String projectName, String altPath) throws IOException
IFileStore
createProject
in interface IFileStore
IOException
public void createFolder(String pathName) throws NoSuchResourceException, IOException
createFolder
in interface IFileStore
NoSuchResourceException
IOException
public void log(String message)
IFileStore
log
in interface IFileStore
public void free()
IFileStore
free
in interface IFileStore
free
in class FileStore
public InputStream getFileByteContent(String path) throws NoSuchResourceException
IFileStore
getFileByteContent
in interface IFileStore
NoSuchResourceException
public void setFileContent(String path, InputStream stream) throws NoSuchResourceException, IOException
IFileStore
setFileContent
in interface IFileStore
NoSuchResourceException
IOException
Copyright © 2015. All rights reserved.