sferyx.administration.renderers.parser.xml
Class ODTTFontDeobfuscator

java.lang.Object
  extended by sferyx.administration.renderers.parser.xml.ODTTFontDeobfuscator

public class ODTTFontDeobfuscator
extends java.lang.Object


Constructor Summary
ODTTFontDeobfuscator()
          Creates a new instance of ODTTFontDeobfuscator
 
Method Summary
static void decodeFont(java.io.InputStream is, java.io.OutputStream outFile, java.lang.String guid)
           
static void decodeFont(java.lang.String fontFilename, java.io.OutputStream outFile, java.lang.String guid)
           
static void decodeFontAndInstallFont(java.io.InputStream is, java.lang.String guid, java.lang.String originalFontName, java.lang.String originalFontFamily)
           
static byte[] getFontBytes(java.io.InputStream is)
           
static byte[] getFontBytes(java.lang.String fontFilename)
           
static void main(java.lang.String[] args)
           
static java.lang.String replaceAll(java.lang.String content, java.lang.String toReplace, java.lang.String replaceWith)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ODTTFontDeobfuscator

public ODTTFontDeobfuscator()
Creates a new instance of ODTTFontDeobfuscator

Method Detail

getFontBytes

public static byte[] getFontBytes(java.io.InputStream is)
                           throws java.io.FileNotFoundException,
                                  java.io.IOException
Throws:
java.io.FileNotFoundException
java.io.IOException

getFontBytes

public static byte[] getFontBytes(java.lang.String fontFilename)
                           throws java.io.FileNotFoundException,
                                  java.io.IOException
Throws:
java.io.FileNotFoundException
java.io.IOException

decodeFontAndInstallFont

public static void decodeFontAndInstallFont(java.io.InputStream is,
                                            java.lang.String guid,
                                            java.lang.String originalFontName,
                                            java.lang.String originalFontFamily)
                                     throws java.io.FileNotFoundException,
                                            java.io.IOException
Throws:
java.io.FileNotFoundException
java.io.IOException

decodeFont

public static void decodeFont(java.io.InputStream is,
                              java.io.OutputStream outFile,
                              java.lang.String guid)
                       throws java.io.FileNotFoundException,
                              java.io.IOException
Throws:
java.io.FileNotFoundException
java.io.IOException

decodeFont

public static void decodeFont(java.lang.String fontFilename,
                              java.io.OutputStream outFile,
                              java.lang.String guid)
                       throws java.io.FileNotFoundException,
                              java.io.IOException
Throws:
java.io.FileNotFoundException
java.io.IOException

main

public static void main(java.lang.String[] args)

replaceAll

public static java.lang.String replaceAll(java.lang.String content,
                                          java.lang.String toReplace,
                                          java.lang.String replaceWith)