com.openindex.openestate.tool.agency.utils
Class HtmlBuilder

java.lang.Object
  extended by com.openindex.openestate.tool.agency.utils.HtmlBuilder
Direct Known Subclasses:
HtmlExposeBuilder, HtmlIndexBuilder

public abstract class HtmlBuilder
extends Object

HtmlBuilder.
$Id: HtmlBuilder.java 1829 2012-10-14 14:24:52Z andy $

Author:
Andreas Rudolph

Field Summary
static String BASE_STYLESHEET
           
static String HTML_RES_PATH
           
 
Constructor Summary
HtmlBuilder(WebsiteHtmlExport e)
           
 
Method Summary
 String getEncoding()
           
 WebsiteHtmlExport getExport()
           
 Locale getLocale()
           
static String prepareString(String txt)
          String zur HTML-Darstellung vorbereiten.
protected  void saveFile(InputStream in, File f)
           
protected  void saveHtml(String html, File f)
           
 void setEncoding(String val)
           
 void setLocale(Locale val)
           
 void storeDefaultStylesheet(File f)
           
static String writeText(String txt)
          HTML-Darstellung eines Textes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HTML_RES_PATH

public static final String HTML_RES_PATH
See Also:
Constant Field Values

BASE_STYLESHEET

public static final String BASE_STYLESHEET
See Also:
Constant Field Values
Constructor Detail

HtmlBuilder

public HtmlBuilder(WebsiteHtmlExport e)
Method Detail

getEncoding

public String getEncoding()

getExport

public WebsiteHtmlExport getExport()

getLocale

public Locale getLocale()

prepareString

public static String prepareString(String txt)
String zur HTML-Darstellung vorbereiten. Eventuelle HTML-Kodierungen werden aufgelöst und Tags werden kodiert.

Parameters:
txt - Eingabe
Returns:
Ausgabe

saveFile

protected void saveFile(InputStream in,
                        File f)
                 throws IOException
Throws:
IOException

saveHtml

protected void saveHtml(String html,
                        File f)
                 throws IOException
Throws:
IOException

setEncoding

public void setEncoding(String val)

setLocale

public void setLocale(Locale val)

storeDefaultStylesheet

public void storeDefaultStylesheet(File f)
                            throws IOException
Throws:
IOException

writeText

public static String writeText(String txt)
HTML-Darstellung eines Textes. - Die Zeilenumbrüche werden ersetzt
- URL werden durch Hyperlinks ersetzt, siehe: http://www.osix.net/modules/article/?id=586

Parameters:
txt - Text
Returns:
HTML-Darstellung des Textes


Copyright © 2012 OpenEstate. All Rights Reserved.