Class LazyResource
java.lang.Object
org.apache.ivy.plugins.repository.LazyResource
- All Implemented Interfaces:
Resource
- Direct Known Subclasses:
VsftpResource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanexists()Determine if the resource is available.longGet the resource sizelongGet the date the resource was last modifiedgetName()Get the name of the resource.protected abstract voidinit()protected voidbooleanisLocal()Is this resource local to this host, i.e.protected voidsetContentLength(long contentLength) protected voidsetExists(boolean exists) protected voidsetLastModified(long lastModified) protected voidsetLocal(boolean local) toString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Resource
clone, openStream
-
Constructor Details
-
LazyResource
-
-
Method Details
-
init
protected abstract void init() -
exists
-
getContentLength
public long getContentLength()Description copied from interface:ResourceGet the resource size- Specified by:
getContentLengthin interfaceResource- Returns:
- a
longvalue representing the size of the resource in bytes.
-
getLastModified
public long getLastModified()Description copied from interface:ResourceGet the date the resource was last modified- Specified by:
getLastModifiedin interfaceResource- Returns:
- A
longvalue representing the time the file was last modified, measured in milliseconds since the epoch (00:00:00 GMT, January 1, 1970), or0Lif the file does not exist or if an I/O error occurs.
-
getName
-
isLocal
-
toString
-
setContentLength
protected void setContentLength(long contentLength) -
setExists
protected void setExists(boolean exists) -
setLastModified
protected void setLastModified(long lastModified) -
setLocal
protected void setLocal(boolean local) -
init
-