org.sourcejammer.server.install
Class Conversion21

java.lang.Object
  |
  +--org.sourcejammer.server.install.Conversion21

public class Conversion21
extends java.lang.Object

Title: $FileName: Conversion21.java$

Version:
$VerNum: 2$
Author:
$AuthorName: Rob MacGrogan$

$Description: Converts 2.0 archives to 2.1 format.$
$KeyWordsOff: $

Field Summary
private  java.io.PrintStream out
           
 
Constructor Summary
Conversion21()
           
 
Method Summary
private  void addMasterFileDir(ArchiveInfoFlexFS archInfo)
           
private  void convertArchive(java.lang.String archiveName)
           
private  void convertFileXML(org.w3c.dom.Document fileDoc, long fileID, long parentID, boolean isRemoved, ArchiveInfoFlexFS archInfo)
           
private  void convertProject(java.io.File projectDir, java.lang.String projectFileName, boolean isRemoved, ArchiveInfoFlexFS archInfo, java.io.File fileDir)
           
private  long convertVersions(org.w3c.dom.Element elmFileRoot)
          Returns initial version id.
private  void copyNamerSource(ArchiveInfoFlexFS archInfo)
           
private  MasterFileNode createMasterFile(ArchiveInfoFlexFS archInfo)
           
private  void printHeader()
           
 void runConversion(java.lang.String archives)
           
private  void saveFileXML(org.w3c.dom.Document fileDoc, java.lang.String fullPath)
           
 void setOut(java.io.PrintStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

out

private java.io.PrintStream out
Constructor Detail

Conversion21

public Conversion21()
Method Detail

setOut

public void setOut(java.io.PrintStream out)

runConversion

public void runConversion(java.lang.String archives)
                   throws FileAccessException
FileAccessException

printHeader

private void printHeader()

convertArchive

private void convertArchive(java.lang.String archiveName)
                     throws FileAccessException,
                            java.io.IOException,
                            javax.xml.parsers.ParserConfigurationException,
                            SecurityException,
                            org.sourcejammer.xml.XMLNodeDoesNotExistException,
                            org.xml.sax.SAXException,
                            javax.xml.transform.TransformerException
FileAccessException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
SecurityException
org.sourcejammer.xml.XMLNodeDoesNotExistException
org.xml.sax.SAXException
javax.xml.transform.TransformerException

convertProject

private void convertProject(java.io.File projectDir,
                            java.lang.String projectFileName,
                            boolean isRemoved,
                            ArchiveInfoFlexFS archInfo,
                            java.io.File fileDir)
                     throws javax.xml.parsers.ParserConfigurationException,
                            org.xml.sax.SAXException,
                            java.io.IOException,
                            org.sourcejammer.xml.XMLNodeDoesNotExistException,
                            SecurityException,
                            FileAccessException,
                            javax.xml.transform.TransformerException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
org.sourcejammer.xml.XMLNodeDoesNotExistException
SecurityException
FileAccessException
javax.xml.transform.TransformerException

addMasterFileDir

private void addMasterFileDir(ArchiveInfoFlexFS archInfo)
                       throws java.io.IOException
java.io.IOException

copyNamerSource

private void copyNamerSource(ArchiveInfoFlexFS archInfo)
                      throws java.io.IOException
java.io.IOException

saveFileXML

private void saveFileXML(org.w3c.dom.Document fileDoc,
                         java.lang.String fullPath)
                  throws java.io.IOException
java.io.IOException

convertFileXML

private void convertFileXML(org.w3c.dom.Document fileDoc,
                            long fileID,
                            long parentID,
                            boolean isRemoved,
                            ArchiveInfoFlexFS archInfo)
                     throws SecurityException,
                            org.sourcejammer.xml.XMLNodeDoesNotExistException,
                            FileAccessException
SecurityException
org.sourcejammer.xml.XMLNodeDoesNotExistException
FileAccessException

convertVersions

private long convertVersions(org.w3c.dom.Element elmFileRoot)
                      throws org.sourcejammer.xml.XMLNodeDoesNotExistException
Returns initial version id.

org.sourcejammer.xml.XMLNodeDoesNotExistException

createMasterFile

private MasterFileNode createMasterFile(ArchiveInfoFlexFS archInfo)


Copyright 2003 Soucejammer project.