net.sf.filePiper.model
Class InputFileInfo

java.lang.Object
  extended by net.sf.filePiper.model.InputFileInfo

public class InputFileInfo
extends Object

Object giving information about an input stream. <

Author:
berol

Constructor Summary
InputFileInfo(File base, File inputFile)
           
 
Method Summary
 void addProposedNameSuffix(String suffix)
          Simplest method to propose a new name for the output file: just add a suffix to the current proposed name.
 File getBasePath()
           
 File getInput()
           
 int getInputCount()
           
 String getInputRelativePath()
           
 String getProposedExtension()
           
 String getProposedFullPath()
          Get the full proposed path = proposedPath + proposedName + proposedExtension (with correct "/", "\" or "." separators and null handing).
 String getProposedName()
           
 String getProposedPath()
           
 String getProposedRelativePath()
          Get the proposed full path minus the base input path.
 void mergeInfo(InputFileInfo mergedInfo)
          Merge two files (MANY to ONE cardinality).
 void setBasePath(File newBasePath)
           
 void setInput(File newInput)
           
 void setProposedExtension(String newProposedExtension)
           
 void setProposedName(String newProposedName)
           
 void setProposedPath(String newProposedPath)
           
 void setProposedRelativePath(String newProposedRelativePath)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InputFileInfo

public InputFileInfo(File base,
                     File inputFile)
Method Detail

addProposedNameSuffix

public void addProposedNameSuffix(String suffix)
Simplest method to propose a new name for the output file: just add a suffix to the current proposed name.

Parameters:
suffix -

toString

public String toString()
Overrides:
toString in class Object

mergeInfo

public void mergeInfo(InputFileInfo mergedInfo)
Merge two files (MANY to ONE cardinality).

Parameters:
newLine - the merged lines;

getProposedFullPath

public String getProposedFullPath()
Get the full proposed path = proposedPath + proposedName + proposedExtension (with correct "/", "\" or "." separators and null handing).


getProposedRelativePath

public String getProposedRelativePath()
Get the proposed full path minus the base input path.
Note: There is a base input path only for multiple files are selected as input.


setProposedRelativePath

public void setProposedRelativePath(String newProposedRelativePath)

getInputRelativePath

public String getInputRelativePath()

getInput

public File getInput()

setInput

public void setInput(File newInput)

getBasePath

public File getBasePath()

setBasePath

public void setBasePath(File newBasePath)

getProposedExtension

public String getProposedExtension()

setProposedExtension

public void setProposedExtension(String newProposedExtension)

getProposedName

public String getProposedName()

setProposedName

public void setProposedName(String newProposedName)

getProposedPath

public String getProposedPath()

setProposedPath

public void setProposedPath(String newProposedPath)

getInputCount

public int getInputCount()


Copyright © 2011. All Rights Reserved.