org.quattor.pan.repository
Class SourceFile

java.lang.Object
  extended by org.quattor.pan.repository.SourceFile
All Implemented Interfaces:
Comparable<SourceFile>

@Immutable
public class SourceFile
extends Object
implements Comparable<SourceFile>


Constructor Summary
SourceFile(String name, boolean isSource, File path)
           
 
Method Summary
 int compareTo(SourceFile o)
           
 boolean equals(Object o)
           
 InputStream getInputStream()
           
 File getLocation()
           
 String getName()
           
 File getPath()
           
 Reader getReader()
           
 SourceType getType()
           
 int hashCode()
           
 boolean isAbsent()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SourceFile

public SourceFile(String name,
                  boolean isSource,
                  File path)
           throws IllegalArgumentException
Throws:
IllegalArgumentException
Method Detail

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.