uk.ac.ebi.intact.application.intSeq.business
Class ManagerFilesSrs

java.lang.Object
  |
  +--uk.ac.ebi.intact.application.intSeq.business.ManagerFiles
        |
        +--uk.ac.ebi.intact.application.intSeq.business.ManagerFilesSrs

public class ManagerFilesSrs
extends ManagerFiles

This class inherits the ManagerFiles class. The Wgetz process manages an URLConnection object. The method reads the output line by line and put the line in a file already created. The PutInFile method is overrided.

Version:
: $Id: ManagerFilesSrs.java,v 1.2 2003/06/18 14:53:48 shuet Exp $
Author:
shuet (shuet@ebi.ac.uk)

Field Summary
 
Fields inherited from class uk.ac.ebi.intact.application.intSeq.business.ManagerFiles
absolutePath, fileName
 
Constructor Summary
ManagerFilesSrs()
          constructor by default
ManagerFilesSrs(java.lang.String pathFile, java.lang.Object extension)
          constructor which allows us to create a random file name, this application is multi-user.
ManagerFilesSrs(java.lang.String pathFile, java.lang.String fileName)
          constructor which passes a hard file name in parameter
 
Method Summary
 void PutInFile(java.lang.String theLine)
          This method overrides the PutInFile method.
 
Methods inherited from class uk.ac.ebi.intact.application.intSeq.business.ManagerFiles
CreateFile, CreateWriter, DeleteFile, GetFileName, GetLineSeparator, GetPathFile, GetRandFileName, ParseWithReAllFollow, ParseWithReOneGroup, PrepareBufferedReader, ReadingFile, ResultParsing, ResultParsingTableFile, SetFileName, SetPathFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManagerFilesSrs

public ManagerFilesSrs()
constructor by default


ManagerFilesSrs

public ManagerFilesSrs(java.lang.String pathFile,
                       java.lang.Object extension)
constructor which allows us to create a random file name, this application is multi-user. So, it allows to reduce possible conflicts.

Parameters:
pathFile - String to know where to put this file
extension - Object representing the logic extension behind the file name

ManagerFilesSrs

public ManagerFilesSrs(java.lang.String pathFile,
                       java.lang.String fileName)
constructor which passes a hard file name in parameter

Parameters:
pathFile - String to know where to put this file
fileName - String to represent the hard name file
Method Detail

PutInFile

public void PutInFile(java.lang.String theLine)
This method overrides the PutInFile method. The Wgetz output is put in a file line by line. It means that this method is processed in a loop. So, the CreateWriter method must be called only once, before the loop, and deleted from this method.

Overrides:
PutInFile in class ManagerFiles
Parameters:
theLine - the string put in the file, with a getLineSeparator method to separate each line.


IntAct Project - EMBL-EBI 2004 - intact-help@ebi.ac.uk