Class TaggedData
java.lang.Object
aQute.bnd.service.url.TaggedData
- All Implemented Interfaces:
Closeable, AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionTaggedData(URI url, int responseCode, File file) TaggedData(URLConnection con, InputStream in) TaggedData(URLConnection con, InputStream in, File file) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()getFile()Returns the input stream containing the resource data.longintgetState()getTag()Returns the ETag for the retrieved resource, ornullif the ETag was not provided by the server.getUrl()booleanbooleanbooleanbooleanisOk()voidthrowIt()toString()
-
Constructor Details
-
Method Details
-
getTag
Returns the ETag for the retrieved resource, ornullif the ETag was not provided by the server. -
getInputStream
Returns the input stream containing the resource data.- Throws:
IOException
-
getResponseCode
public int getResponseCode() -
getModified
public long getModified() -
hasPayload
- Throws:
IOException
-
getUrl
-
getConnection
-
toString
-
isOk
public boolean isOk() -
isNotModified
public boolean isNotModified() -
throwIt
public void throwIt() -
getState
-
isNotFound
public boolean isNotFound() -
getFile
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-