|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
treebolic.site.SiteMaker
public abstract class SiteMaker
Make site
Field Summary | |
---|---|
(package private) static int |
PROGRESSCOMPLETE
Disconnect complete |
(package private) static int |
PROGRESSCONNECT
Connect start |
(package private) static int |
PROGRESSCONNECTCOMPLETE
Connect completed |
(package private) static int |
PROGRESSDISCONNECT
Disconnect start |
(package private) static int |
PROGRESSXFERDTD
Transfer DTD |
(package private) static int |
PROGRESSXFERHTML
Transfer HTML |
(package private) static int |
PROGRESSXFERIMAGES
Transfer images |
(package private) static int |
PROGRESSXFERJAR
Transfer applet Jar |
(package private) static int |
PROGRESSXFERXML
Transfer XML |
(package private) static int |
PROGRESSZERO
Start |
private static java.lang.String |
theAppclass
Applet class |
private org.w3c.dom.Document |
theDocument
Document (source) |
private static java.lang.String |
theDTDFile
Dtd file to transfer |
protected java.lang.String |
theHtmlFile
HTML file (target) |
private java.lang.String |
theImageRepository
Image repository (source) |
private static java.lang.String |
theJarFile
Jar file to transfer |
protected java.lang.String |
theOperation
Operation string |
private java.lang.String |
theRepository
Repository (source) for templetes |
static java.lang.String |
theTemplateFile
HTML template file |
private java.lang.String |
theTitle
Title for HTML title (target) |
protected java.lang.String |
theXmlFile
XML file (target) |
Constructor Summary | |
---|---|
SiteMaker(org.w3c.dom.Document thisDocument,
java.lang.String thisRepository,
java.lang.String thisImageRepository,
java.lang.String thisHtmlFile,
java.lang.String thisXmlFile,
java.lang.String thisTitle)
Constructor |
Method Summary | |
---|---|
(package private) abstract boolean |
changeFolder(java.lang.String thisRelativeFolder)
Change folder |
(package private) abstract boolean |
connect()
Connect to destination |
private static boolean |
copyStreams(java.io.InputStream thisInstream,
java.io.OutputStream thisOutstream)
Copy streams |
private boolean |
copyStreamsReplace(java.io.InputStream thisInstream,
java.io.OutputStream thisOutstream,
java.lang.String[] theseSources,
java.lang.String[] theseDestinations)
Copy text file to output stream while replacing strings with values |
(package private) abstract boolean |
disconnect()
Disconnect from destination |
boolean |
make()
Make site operation |
(package private) abstract java.io.OutputStream |
makeOutStream(java.lang.String thisFilename)
Make output stream |
(package private) void |
notifyOperation(java.lang.String thisOperation,
int thisProgressValue)
Notify operation progress |
Methods inherited from class java.util.Observable |
---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.lang.String theJarFile
private static final java.lang.String theDTDFile
private static final java.lang.String theAppclass
public static java.lang.String theTemplateFile
static final int PROGRESSZERO
static final int PROGRESSCONNECT
static final int PROGRESSCONNECTCOMPLETE
static final int PROGRESSXFERXML
static final int PROGRESSXFERHTML
static final int PROGRESSXFERJAR
static final int PROGRESSXFERDTD
static final int PROGRESSXFERIMAGES
static final int PROGRESSDISCONNECT
static final int PROGRESSCOMPLETE
private org.w3c.dom.Document theDocument
private java.lang.String theRepository
private java.lang.String theImageRepository
private java.lang.String theTitle
protected java.lang.String theHtmlFile
protected java.lang.String theXmlFile
protected java.lang.String theOperation
Constructor Detail |
---|
public SiteMaker(org.w3c.dom.Document thisDocument, java.lang.String thisRepository, java.lang.String thisImageRepository, java.lang.String thisHtmlFile, java.lang.String thisXmlFile, java.lang.String thisTitle) throws java.net.URISyntaxException, java.io.IOException
thisDocument
- document (source)thisRepository
- repository (source)thisImageRepository
- image repository (source)thisHtmlFile
- HTML file (target)thisXmlFile
- XML file (target)thisTitle
- HTML file title (target)
java.net.URISyntaxException
java.io.IOException
Method Detail |
---|
abstract boolean connect()
abstract boolean disconnect()
abstract boolean changeFolder(java.lang.String thisRelativeFolder) throws java.net.MalformedURLException, java.net.URISyntaxException
thisRelativeFolder
- relative folder
java.net.MalformedURLException
java.net.URISyntaxException
abstract java.io.OutputStream makeOutStream(java.lang.String thisFilename) throws java.net.MalformedURLException, java.io.IOException, java.net.URISyntaxException
thisFilename
- filename
java.net.MalformedURLException
java.io.IOException
java.net.URISyntaxException
void notifyOperation(java.lang.String thisOperation, int thisProgressValue)
thisOperation
- pending operation stringthisProgressValue
- progress value (max 100)public boolean make()
private boolean copyStreamsReplace(java.io.InputStream thisInstream, java.io.OutputStream thisOutstream, java.lang.String[] theseSources, java.lang.String[] theseDestinations)
thisInstream
- input streamthisOutstream
- output streantheseSources
- what to replacetheseDestinations
- what to replace it with
private static boolean copyStreams(java.io.InputStream thisInstream, java.io.OutputStream thisOutstream)
thisInstream
- input streamthisOutstream
- output stream
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |