com.l2fprod.tools
Class ThemeConverter

java.lang.Object
  extended by com.l2fprod.tools.ThemeConverter
Direct Known Subclasses:
MsStylesToSkinLF

public abstract class ThemeConverter
extends java.lang.Object


Constructor Summary
protected ThemeConverter(java.lang.String prefix, java.lang.String suffix)
           
 
Method Summary
 java.io.File getCurrentOutputDirectory()
           
protected  java.io.File getSkinDirectory()
           
protected abstract  java.lang.String handleImage(java.lang.String path, int index, int count, java.lang.String outputname)
           
protected abstract  java.lang.String handleProperty(java.lang.String path)
           
protected  java.lang.String paramString()
           
protected  java.lang.String parseLine(java.lang.String line)
           
protected  java.lang.String parseTag(java.lang.String tag)
           
 void process()
           
protected  void processTemplate(java.io.InputStream template, java.io.OutputStream output)
           
 void setCurrentOutputDirectory(java.io.File directory)
           
 void setSkinDirectory(java.io.File directory)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ThemeConverter

protected ThemeConverter(java.lang.String prefix,
                         java.lang.String suffix)
Method Detail

setSkinDirectory

public void setSkinDirectory(java.io.File directory)

getSkinDirectory

protected java.io.File getSkinDirectory()

setCurrentOutputDirectory

public void setCurrentOutputDirectory(java.io.File directory)

getCurrentOutputDirectory

public java.io.File getCurrentOutputDirectory()

process

public void process()
             throws java.lang.Exception
Throws:
java.lang.Exception

processTemplate

protected void processTemplate(java.io.InputStream template,
                               java.io.OutputStream output)
                        throws java.lang.Exception
Throws:
java.lang.Exception

parseLine

protected java.lang.String parseLine(java.lang.String line)
                              throws java.lang.Exception
Throws:
java.lang.Exception

parseTag

protected java.lang.String parseTag(java.lang.String tag)
                             throws java.lang.Exception
Throws:
java.lang.Exception

handleImage

protected abstract java.lang.String handleImage(java.lang.String path,
                                                int index,
                                                int count,
                                                java.lang.String outputname)
                                         throws java.lang.Exception
Throws:
java.lang.Exception

handleProperty

protected abstract java.lang.String handleProperty(java.lang.String path)
                                            throws java.lang.Exception
Throws:
java.lang.Exception

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

paramString

protected java.lang.String paramString()