org.activemath.fileBased
Class DTDreferenceFixer

java.lang.Object
  extended by org.activemath.fileBased.DTDreferenceFixer

public class DTDreferenceFixer
extends Object


Field Summary
static boolean DEBUG
           
static byte[] dtdRef
           
 
Constructor Summary
DTDreferenceFixer(String fileName)
           
 
Method Summary
 void findDTDdeclaration()
          Finds where the <!
 void fixDTDdeclaration()
           
 void loadFile()
           
static void main(String[] args)
           
static int[] matchDTDdecl(String s)
          Formely used method to match the declaration of the single DTD reference, like in
static void readFromStandardIn()
           
 void writeFile()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dtdRef

public static byte[] dtdRef

DEBUG

public static boolean DEBUG
Constructor Detail

DTDreferenceFixer

public DTDreferenceFixer(String fileName)
Method Detail

main

public static void main(String[] args)

readFromStandardIn

public static void readFromStandardIn()

findDTDdeclaration

public void findDTDdeclaration()
Finds where the <!DOCTYPE declaration starts and ends and sets its result in dtdRefStart


matchDTDdecl

public static int[] matchDTDdecl(String s)
Formely used method to match the declaration of the single DTD reference, like in


fixDTDdeclaration

public void fixDTDdeclaration()

loadFile

public void loadFile()

writeFile

public void writeFile()