mk.fsgrep.util
Class TargetFile
java.lang.Object
mk.fsgrep.util.TargetFile
- All Implemented Interfaces:
- java.lang.Comparable
public class TargetFile
- extends java.lang.Object
- implements java.lang.Comparable
A wrapper for the File object which caches the canonical name and the
suffix, so these do not have to be determined multiple times.
- Author:
- Murali Krishnan
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TargetFile
public TargetFile(java.lang.String pFilename)
TargetFile
public TargetFile(java.io.File pFile)
TargetFile
public TargetFile(java.io.File pFile,
java.lang.String pSuffix)
TargetFile
protected TargetFile()
getFile
public java.io.File getFile()
getSuffix
public java.lang.String getSuffix()
getName
public java.lang.String getName()
getLineNumberReader
protected java.io.LineNumberReader getLineNumberReader()
getFilterNumbers
public java.util.Collection<java.lang.Integer> getFilterNumbers()
setLineNumberReader
protected void setLineNumberReader(java.io.LineNumberReader val)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
backup
public void backup()
createLineReader
public TargetFile.LineReader createLineReader()
saveContent
public void saveContent(java.util.Collection<FileLine> lines)
addFilterNumber
public void addFilterNumber(int number)
compareTo
public int compareTo(java.lang.Object object)
- Specified by:
compareTo
in interface java.lang.Comparable
equals
public boolean equals(java.lang.Object object)
- Overrides:
equals
in class java.lang.Object
Copyright © 2009. All Rights Reserved.