org.quattor.pan.repository
Class SourceFile
java.lang.Object
org.quattor.pan.repository.SourceFile
- All Implemented Interfaces:
- Comparable<SourceFile>
@Immutable
public class SourceFile
- extends Object
- implements Comparable<SourceFile>
SourceFile
public SourceFile(String name,
boolean isSource,
File path)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
getName
public String getName()
getType
public SourceType getType()
getLocation
public File getLocation()
getPath
public File getPath()
isAbsent
public boolean isAbsent()
getInputStream
public InputStream getInputStream()
throws IOException
- Throws:
IOException
getReader
public Reader getReader()
throws IOException
- Throws:
IOException
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
compareTo
public int compareTo(SourceFile o)
- Specified by:
compareTo in interface Comparable<SourceFile>
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2011 Quattor. All Rights Reserved.