info.aduna.gee.publication.tools
Class MetaScript

java.lang.Object
  extended by info.aduna.gee.publication.tools.MetaScript

public class MetaScript
extends Object

Dynamic html support.


Constructor Summary
MetaScript()
           
 
Method Summary
static void convert(InputStream in, OutputStream out, boolean escape, int metaLevel)
          It is an attractive idea to decrease the size of the Resulting HTML file by reducing the amount of doc.writes.
static void convert(String inFile, String outFile, boolean escape)
           
static String escape(String line)
           
static String escapeMeta(String line)
           
static String escapeSingle(char c, String line, int begin)
           
static String escapeSingles(String line)
           
static String escapeSpecial(String line)
           
static void insert(OutputStream out, String fileName, int metaLevel, boolean escape)
           
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaScript

public MetaScript()
Method Detail

convert

public static void convert(String inFile,
                           String outFile,
                           boolean escape)
                    throws IOException
Throws:
IOException

convert

public static void convert(InputStream in,
                           OutputStream out,
                           boolean escape,
                           int metaLevel)
                    throws IOException
It is an attractive idea to decrease the size of the Resulting HTML file by reducing the amount of doc.writes. Instead of doc.writeln('part-1'); doc.writeln('part-2'); You do a: doc.writeln('part-1\npart-2'); Unfortunately, this does NOT work in Netscape 4.0.3: doc.writeln('part-1\n//part-2\npart-3'); In the generated document BOTH part-2 and part-3 are considered COMMENT. Netscape 4.0.5: ..... on 1 line doesn't work. doc.writeln('\n') In the generated document it doesn't work, as if they ARE on one line. Therefore, we do NOT JOIN LINES for HTML files.

Throws:
IOException

insert

public static void insert(OutputStream out,
                          String fileName,
                          int metaLevel,
                          boolean escape)

escape

public static String escape(String line)

escapeSpecial

public static String escapeSpecial(String line)

escapeSingles

public static String escapeSingles(String line)

escapeSingle

public static String escapeSingle(char c,
                                  String line,
                                  int begin)

escapeMeta

public static String escapeMeta(String line)

main

public static final void main(String[] args)


Copyright © 1997-2008 Aduna. All Rights Reserved.