Package | Description |
---|---|
org.gramar | |
org.gramar.filestore | |
org.gramar.gramar | |
org.gramar.resource |
Modifier and Type | Method and Description |
---|---|
void |
IFileStore.createFolder(String pathName) |
InputStream |
IFileStore.getFileByteContent(String path)
Retrieve the content of the specified file.
|
Reader |
IFileStore.getFileContent(String path)
Retrieve the content of the specified file.
|
InputStream |
IGramar.getTemplateBinary(String src) |
String |
IGramar.getTemplateSource(String id) |
void |
IFileStore.setFileContent(String path,
InputStream stream)
Store the content of the specified file.
|
void |
IFileStore.setFileContent(String path,
Reader reader)
Store the content of the specified file.
|
Modifier and Type | Method and Description |
---|---|
void |
LocalFileStore.createFolder(String pathName) |
void |
ConsoleFileStore.createFolder(String pathName) |
void |
MemoryFileStore.createFolder(String pathName) |
void |
ZipFileStore.createFolder(String pathName) |
InputStream |
LocalFileStore.getFileByteContent(String path) |
InputStream |
ConsoleFileStore.getFileByteContent(String path) |
InputStream |
MemoryFileStore.getFileByteContent(String path) |
InputStream |
ZipFileStore.getFileByteContent(String path) |
Reader |
ConsoleFileStore.getFileContent(String path) |
Reader |
MemoryFileStore.getFileContent(String path) |
Reader |
ZipFileStore.getFileContent(String path) |
void |
LocalFileStore.setFileContent(String path,
InputStream stream) |
void |
ConsoleFileStore.setFileContent(String path,
InputStream stream) |
void |
MemoryFileStore.setFileContent(String path,
InputStream stream) |
void |
ZipFileStore.setFileContent(String path,
InputStream stream) |
void |
LocalFileStore.setFileContent(String path,
Reader reader) |
void |
ConsoleFileStore.setFileContent(String path,
Reader reader) |
void |
MemoryFileStore.setFileContent(String path,
Reader reader) |
void |
ZipFileStore.setFileContent(String path,
Reader reader) |
Modifier and Type | Method and Description |
---|---|
InputStream |
Gramar.getTemplateBinary(String id) |
String |
Gramar.getTemplateSource(String id) |
InputStream |
ClasspathGramar.readTemplateBinary(String id) |
InputStream |
ZipGrammar.readTemplateBinary(String templateName) |
abstract InputStream |
Gramar.readTemplateBinary(String id) |
InputStream |
JarGramar.readTemplateBinary(String id) |
String |
ClasspathGramar.readTemplateSource(String id)
Look for a file in the classpath with the package with the same name as the pattern
For example, the file "d/xyz.txt" for pattern ID a.b.c would be found at resource /a/b/c/d/xyz.txt
If such a resource is found, return its source contents.
|
String |
ZipGrammar.readTemplateSource(String templateName) |
abstract String |
Gramar.readTemplateSource(String id) |
String |
JarGramar.readTemplateSource(String id)
Look for a file in the classpath with the package with the same name as the pattern
For example, the file "d/xyz.txt" for pattern ID a.b.c would be found at resource /a/b/c/d/xyz.txt
If such a resource is found, return its source contents.
|
Modifier and Type | Method and Description |
---|---|
void |
UpdateFolder.execute(IFileStore store) |
void |
UpdateFile.execute(IFileStore store) |
void |
UpdateBinary.execute(IFileStore store) |
Copyright © 2015. All rights reserved.