tr.linkchecker.io
Class CFileObj

java.lang.Object
  extended bytr.linkchecker.io.CFileObj

public class CFileObj
extends java.lang.Object

The Object in which the Files saved.

Date: 21.10.2004

Version:
1.0
Author:
Tobias Roessler, Ralf Schmitt

Constructor Summary
CFileObj()
          Default-Constructor
CFileObj(java.io.File filename, int filenr)
          Constructor that save the commited parameters
 
Method Summary
 java.io.File getFilename()
          Method that return the saved file
 int getFileNr()
          Method that return the saved counter
 java.util.Vector readUrlFromFile()
          Method to read all url's from a file
 java.util.Vector searchUrlInString(java.lang.String line)
          Search the url's in a "String"
 void setFilename(java.io.File filename)
          Method to set the filename
 void setFileNr(int filenr)
          Method to set the counter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CFileObj

public CFileObj()
Default-Constructor


CFileObj

public CFileObj(java.io.File filename,
                int filenr)
Constructor that save the commited parameters

Parameters:
filename - The file that we want to store
Method Detail

setFilename

public void setFilename(java.io.File filename)
Method to set the filename

Parameters:
filename - The file that we want to store

setFileNr

public void setFileNr(int filenr)
Method to set the counter


getFilename

public java.io.File getFilename()
Method that return the saved file

Returns:
mFilename Returns the saved file

getFileNr

public int getFileNr()
Method that return the saved counter

Returns:
mCounter Returns the saved counter

readUrlFromFile

public java.util.Vector readUrlFromFile()
Method to read all url's from a file

Returns:
urlList Returns a list of url's founded in this file

searchUrlInString

public java.util.Vector searchUrlInString(java.lang.String line)
Search the url's in a "String"

Parameters:
line - From a file readed line
Returns:
v A "Vector" with all in the "Strings" founded url's