org.sourcejammer.project.controller
Class PreviousVersionSourceRetreiver

java.lang.Object
  |
  +--org.sourcejammer.project.controller.PreviousVersionSourceRetreiver

public class PreviousVersionSourceRetreiver
extends java.lang.Object


Field Summary
private  Archive mArch
           
private  int miRequestedEOLType
           
private  int miVersionNumber
           
private  long mlFileID
           
private  long mlVersionID
           
 
Constructor Summary
PreviousVersionSourceRetreiver(long fileID, int versionNumber, int requestedEOLType, Archive arch)
           
PreviousVersionSourceRetreiver(long fileID, long versionID, int requestedEOLType, Archive arch)
           
 
Method Summary
private  void rebuildBinaryFromDiffAndWriteToFile(FileNode ndFile, java.io.File flTarget)
           
private  void rebuildTextFromDiffAndWriteToFile(FileNode ndFile, java.io.File flTarget)
           
private  void retreiveCurrOnly(FileNode ndFile, java.io.File flTarget)
           
private  void retreiveDiff(FileNode ndFile, java.io.File flTarget)
           
private  void retreiveFull(FileNode ndFile, java.io.File flTarget)
           
 void retreiveSource(java.io.File flTarget)
           
private  void retreiveZipped(FileNode ndFile, java.io.File flTarget)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mlFileID

private long mlFileID

miVersionNumber

private int miVersionNumber

miRequestedEOLType

private int miRequestedEOLType

mlVersionID

private long mlVersionID

mArch

private Archive mArch
Constructor Detail

PreviousVersionSourceRetreiver

public PreviousVersionSourceRetreiver(long fileID,
                                      int versionNumber,
                                      int requestedEOLType,
                                      Archive arch)

PreviousVersionSourceRetreiver

public PreviousVersionSourceRetreiver(long fileID,
                                      long versionID,
                                      int requestedEOLType,
                                      Archive arch)
Method Detail

retreiveSource

public void retreiveSource(java.io.File flTarget)
                    throws FileAccessException,
                           SecurityException,
                           FileDoesNotExistException,
                           ProjectDoesNotExistException,
                           TextFileException,
                           NoSuchVersionException,
                           WrongFileTypeException,
                           InvalidSourceException,
                           java.io.IOException,
                           EndOfSourceException
FileAccessException
SecurityException
FileDoesNotExistException
ProjectDoesNotExistException
TextFileException
NoSuchVersionException
WrongFileTypeException
InvalidSourceException
java.io.IOException
EndOfSourceException

retreiveCurrOnly

private void retreiveCurrOnly(FileNode ndFile,
                              java.io.File flTarget)
                       throws NoSuchVersionException,
                              FileAccessException,
                              ProjectDoesNotExistException,
                              java.io.IOException,
                              FileDoesNotExistException,
                              WrongFileTypeException
NoSuchVersionException
FileAccessException
ProjectDoesNotExistException
java.io.IOException
FileDoesNotExistException
WrongFileTypeException

retreiveDiff

private void retreiveDiff(FileNode ndFile,
                          java.io.File flTarget)
                   throws FileAccessException,
                          FileDoesNotExistException,
                          NoSuchVersionException,
                          ProjectDoesNotExistException,
                          TextFileException,
                          SecurityException,
                          WrongFileTypeException,
                          InvalidSourceException,
                          java.io.IOException,
                          EndOfSourceException
FileAccessException
FileDoesNotExistException
NoSuchVersionException
ProjectDoesNotExistException
TextFileException
SecurityException
WrongFileTypeException
InvalidSourceException
java.io.IOException
EndOfSourceException

rebuildBinaryFromDiffAndWriteToFile

private void rebuildBinaryFromDiffAndWriteToFile(FileNode ndFile,
                                                 java.io.File flTarget)
                                          throws FileDoesNotExistException,
                                                 FileAccessException,
                                                 SecurityException,
                                                 java.io.IOException,
                                                 NoSuchVersionException,
                                                 ProjectDoesNotExistException,
                                                 WrongFileTypeException,
                                                 InvalidSourceException
FileDoesNotExistException
FileAccessException
SecurityException
java.io.IOException
NoSuchVersionException
ProjectDoesNotExistException
WrongFileTypeException
InvalidSourceException

rebuildTextFromDiffAndWriteToFile

private void rebuildTextFromDiffAndWriteToFile(FileNode ndFile,
                                               java.io.File flTarget)
                                        throws FileAccessException,
                                               FileDoesNotExistException,
                                               SecurityException,
                                               TextFileException,
                                               NoSuchVersionException,
                                               ProjectDoesNotExistException,
                                               WrongFileTypeException,
                                               InvalidSourceException,
                                               java.io.IOException,
                                               EndOfSourceException
FileAccessException
FileDoesNotExistException
SecurityException
TextFileException
NoSuchVersionException
ProjectDoesNotExistException
WrongFileTypeException
InvalidSourceException
java.io.IOException
EndOfSourceException

retreiveFull

private void retreiveFull(FileNode ndFile,
                          java.io.File flTarget)
                   throws NoSuchVersionException,
                          FileAccessException,
                          ProjectDoesNotExistException,
                          java.io.IOException,
                          FileDoesNotExistException,
                          WrongFileTypeException
NoSuchVersionException
FileAccessException
ProjectDoesNotExistException
java.io.IOException
FileDoesNotExistException
WrongFileTypeException

retreiveZipped

private void retreiveZipped(FileNode ndFile,
                            java.io.File flTarget)
                     throws NoSuchVersionException,
                            FileAccessException,
                            ProjectDoesNotExistException,
                            java.io.IOException,
                            FileDoesNotExistException,
                            WrongFileTypeException
NoSuchVersionException
FileAccessException
ProjectDoesNotExistException
java.io.IOException
FileDoesNotExistException
WrongFileTypeException


Copyright 2003 Soucejammer project.