org.activemath.fileBased
Class DTDreferenceFixer
java.lang.Object
org.activemath.fileBased.DTDreferenceFixer
public class DTDreferenceFixer
- extends Object
|
Field Summary |
static boolean |
DEBUG
|
static byte[] |
dtdRef
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dtdRef
public static byte[] dtdRef
DEBUG
public static boolean DEBUG
DTDreferenceFixer
public DTDreferenceFixer(String fileName)
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()