|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.eng.spagobi.tools.importexport.transformers.TransformersUtilities
public class TransformersUtilities
Constructor Summary | |
---|---|
TransformersUtilities()
|
Method Summary | |
---|---|
static void |
compressFolder(java.lang.String pathExportFolder,
java.lang.String pathFolder,
java.util.zip.ZipOutputStream out)
Compress contents of a folder into an output stream. |
static byte[] |
createExportArchive(java.lang.String pathExportFolder,
java.lang.String nameExportFile)
Creates the compress export file. |
static void |
decompressArchive(java.lang.String pathImpTmpFold,
java.lang.String archiveName,
byte[] archiveCont)
Decompress archive. |
static java.sql.Connection |
getConnectionToDatabase(java.lang.String pathImpTmpFolder,
java.lang.String archiveName)
Gets the connection to database. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransformersUtilities()
Method Detail |
---|
public static java.sql.Connection getConnectionToDatabase(java.lang.String pathImpTmpFolder, java.lang.String archiveName)
pathImpTmpFolder
- the path imp tmp folderarchiveName
- the archive name
public static void compressFolder(java.lang.String pathExportFolder, java.lang.String pathFolder, java.util.zip.ZipOutputStream out) throws it.eng.spago.error.EMFUserError
pathFolder
- The path of the folder to compressout
- The Compress output streampathExportFolder
- the path export folder
it.eng.spago.error.EMFUserError
- the EMF user errorpublic static void decompressArchive(java.lang.String pathImpTmpFold, java.lang.String archiveName, byte[] archiveCont) throws java.lang.Exception
pathImpTmpFold
- the path imp tmp foldarchiveName
- the archive namearchiveCont
- the archive cont
java.lang.Exception
- the exceptionpublic static byte[] createExportArchive(java.lang.String pathExportFolder, java.lang.String nameExportFile) throws it.eng.spago.error.EMFUserError
pathExportFolder
- the path export foldernameExportFile
- the name export file
it.eng.spago.error.EMFUserError
- the EMF user error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |