public class MakeWeb extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static interface |
MakeWeb.FileCallBack
An interface defining a callback for a file tree walk (used by
the sitemap option)
|
(package private) static class |
MakeWeb.SiteMap
This class, given a top-level directory, creates in a database a
table "sitemap" containing entries representing the file and
directory structure under this top-level directory.
|
Modifier and Type | Field and Description |
---|---|
(package private) static java.sql.Connection |
conn |
(package private) static boolean |
printFlag |
Constructor and Description |
---|
MakeWeb() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String... args)
If first arg is "-map" then a sitemap structure is created in the
table "sitemap".
|
(package private) static void |
make(java.lang.String... pagesets)
This method creates all pages specified by the database.
|
(package private) static java.lang.String |
substitute(java.lang.String s,
java.util.ArrayList<java.lang.String> subs)
replaces $0-$9 in String s with subs.get(0) - subs.get(9).
|
(package private) static java.util.ArrayList<java.util.ArrayList<java.lang.String>> |
table(java.lang.String query,
java.lang.String... columns)
This method implements easy access to the specified rows of a
query.
|
static final boolean printFlag
static java.sql.Connection conn
public MakeWeb()
static java.util.ArrayList<java.util.ArrayList<java.lang.String>> table(java.lang.String query, java.lang.String... columns) throws java.sql.SQLException
query
- the query used for obtaining the tablecolumns
- the names of the columns to be returnedjava.sql.SQLException
- throws if problem with SQLitestatic void make(java.lang.String... pagesets) throws java.sql.SQLException, java.io.IOException
pagesets
- pagesets to be made - if empty all pagesets are madejava.sql.SQLException
- catch-all for SQLExceptionsjava.io.IOException
- catch-all for IOExceptionsstatic java.lang.String substitute(java.lang.String s, java.util.ArrayList<java.lang.String> subs)
s
- the String to perform substitutions onsubs
- an ArrayList specifying substitutions for $0, $1 etc.public static void main(java.lang.String... args) throws java.sql.SQLException, java.io.IOException
args
- command line argumentsjava.sql.SQLException
- catch-all for SQLExceptionsjava.io.IOException
- catch-all for IOExceptions