public class SiteGenerator extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SiteGenerator.CanThreadFileFilter |
| Modifier and Type | Field and Description |
|---|---|
static Map<String,String> |
BINARY_EXTENSIONS |
String |
charset |
File |
commonDir |
File |
contentDir |
static String |
CSS |
static String |
DOT |
static String |
HTML |
static String |
JS |
static String |
MAP |
File |
outDir |
static String |
PROP |
static String |
TILDE |
long |
timeToSleepBetweenIteration |
| Constructor and Description |
|---|
SiteGenerator(File outDir,
File contentDir,
File commonDir,
String charset) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canThreatFileOrDir(File file) |
void |
generate(boolean daemon) |
File |
getFileFromFileName(String fileName) |
Node |
getFileNode(File file) |
Node |
getFileNode(File file,
boolean isPageFile) |
File |
getOutpath(Node node) |
String |
getRelativePath(File file)
IF the file is ..
|
String |
iterateOver(Node parent,
Node template,
String relativePath,
boolean dirs,
boolean symLink) |
String |
iterateOverDIR(Node parent,
Node template,
String relativePath) |
String |
iterateOverDIRS(Node parent,
Node template,
String relativePath) |
String |
iterateOverSymbLink(Node parent,
Node template,
String globPattern) |
void |
writeFileContent(Node root,
String content) |
public final File outDir
public final File contentDir
public final File commonDir
public final String charset
public long timeToSleepBetweenIteration
public static final String HTML
public static final String PROP
public static final String CSS
public static final String JS
public static final String MAP
public static final String TILDE
public static final String DOT
public void generate(boolean daemon)
throws FileNotFoundException
FileNotFoundExceptionpublic Node getFileNode(File file) throws FileNotFoundException
FileNotFoundExceptionpublic Node getFileNode(File file, boolean isPageFile) throws FileNotFoundException
FileNotFoundExceptionpublic String getRelativePath(File file) throws FileNotFoundException
FileNotFoundExceptionpublic File getOutpath(Node node) throws FileNotFoundException
FileNotFoundExceptionpublic String iterateOverSymbLink(Node parent, Node template, String globPattern)
public String iterateOver(Node parent, Node template, String relativePath, boolean dirs, boolean symLink)
public static boolean canThreatFileOrDir(File file)
Copyright © 2014 ginere solutions. All Rights Reserved.