org.inxar.hotswap
Interface ProxyResource


public interface ProxyResource

Abstraction of a File or some other entity that is used to hold bytes of data.

Since:
0.8.6

Method Summary
 boolean exists()
          Returns true if the resource exists.
 InputStream getInputStream()
          Returns an InputStream used to read the resource data.
 long lastModified()
          Returns the time of last modification.
 long length()
          Returns the number of bytes in the InputStream.
 String toString()
          Returns a String representation of the Resource.
 

Method Detail

lastModified

public long lastModified()
                  throws IOException
Returns the time of last modification.

length

public long length()
            throws IOException
Returns the number of bytes in the InputStream.

exists

public boolean exists()
               throws IOException
Returns true if the resource exists.

getInputStream

public InputStream getInputStream()
                           throws IOException
Returns an InputStream used to read the resource data.

toString

public String toString()
Returns a String representation of the Resource.
Overrides:
toString in class Object