org.infoglue.cms.util
Class DocumentConverterHelper

java.lang.Object
  extended by org.infoglue.cms.util.DocumentConverterHelper

public class DocumentConverterHelper
extends java.lang.Object


Constructor Summary
DocumentConverterHelper()
           
 
Method Summary
static void adaptHandbook(java.io.File aHandbookHtmlFile, java.util.List aCssList)
           
 ConvertedDocumentBean convert(java.io.File aDocFile, java.lang.String aTitle, java.lang.String aMenuTextLength, java.util.List aCssList)
           
static void convertDocument(java.io.File aInputFile, java.io.File aOutputFile, com.artofsolving.jodconverter.openoffice.connection.OpenOfficeConnection aConnection)
           
static void copyInputStream(java.io.InputStream in, java.io.OutputStream out)
           
static java.io.File extractContentXml(java.io.File aOdtFile, java.lang.String aTargetDirectory)
           
static void listChildren(org.jdom.Element aParentElement)
           
static java.lang.String readFileIntoString(java.io.File aFile)
           
static void writeStringToFile(java.io.File aFile, java.lang.String aContents)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentConverterHelper

public DocumentConverterHelper()
Method Detail

convert

public ConvertedDocumentBean convert(java.io.File aDocFile,
                                     java.lang.String aTitle,
                                     java.lang.String aMenuTextLength,
                                     java.util.List aCssList)

adaptHandbook

public static void adaptHandbook(java.io.File aHandbookHtmlFile,
                                 java.util.List aCssList)
                          throws java.lang.Exception
Throws:
java.lang.Exception

readFileIntoString

public static java.lang.String readFileIntoString(java.io.File aFile)
                                           throws java.lang.Exception
Throws:
java.lang.Exception

writeStringToFile

public static void writeStringToFile(java.io.File aFile,
                                     java.lang.String aContents)
                              throws java.io.FileNotFoundException,
                                     java.io.IOException
Throws:
java.io.FileNotFoundException
java.io.IOException

listChildren

public static void listChildren(org.jdom.Element aParentElement)

convertDocument

public static void convertDocument(java.io.File aInputFile,
                                   java.io.File aOutputFile,
                                   com.artofsolving.jodconverter.openoffice.connection.OpenOfficeConnection aConnection)

extractContentXml

public static java.io.File extractContentXml(java.io.File aOdtFile,
                                             java.lang.String aTargetDirectory)
                                      throws java.util.zip.ZipException,
                                             java.io.IOException
Throws:
java.util.zip.ZipException
java.io.IOException

copyInputStream

public static final void copyInputStream(java.io.InputStream in,
                                         java.io.OutputStream out)
                                  throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2005 InfoGlue.org All Rights Reserved.