public final class FetchItem
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
java.lang.Long |
length
The length of the file in octets
|
java.nio.file.Path |
path
The path where the fetched item should be put
|
java.net.URL |
url
The url from which the item can be downloaded
|
| Constructor and Description |
|---|
FetchItem(java.net.URL url,
java.lang.Long length,
java.nio.file.Path path) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Long |
getLength() |
java.nio.file.Path |
getPath() |
java.net.URL |
getUrl() |
int |
hashCode() |
java.lang.String |
toString() |
public final java.net.URL url
public final java.lang.Long length
public final java.nio.file.Path path
public FetchItem(java.net.URL url,
java.lang.Long length,
java.nio.file.Path path)
url - the URL of the filelength - the file length in bytes, -1 or null to not specify the lengthpath - the path in the bag where the file belongspublic java.lang.String toString()
toString in class java.lang.Objectpublic java.net.URL getUrl()
public java.lang.Long getLength()
public java.nio.file.Path getPath()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object