org.schmant.arg
Class RenamedFile
java.lang.Object
org.schmant.support.AbstractArgumentChecker
org.schmant.arg.RenamedFile
public class RenamedFile
- extends AbstractArgumentChecker
This object can be used to pretend that a NamedReadableFile
has
another name. It is understood by
InterpretAsNamedReadableFileStrategy
.
- Since:
- 0.5
- Author:
- Karl Gustafsson
RenamedFile
public RenamedFile(Object f,
String name)
throws NullPointerException
- Create a new renamed file.
- Parameters:
f
- The file.name
- The new name for the file.
- Throws:
NullPointerException
- If any of the arguments are null
.
getFile
public Object getFile()
getName
public String getName()
toString
public String toString()
- Overrides:
toString
in class Object