Class TaggedData
java.lang.Object
aQute.bnd.service.url.TaggedData
- All Implemented Interfaces:
Closeable, AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionTaggedData(String tag, InputStream inputStream) Deprecated.TaggedData(String tag, InputStream inputStream, int responseCode) Deprecated.TaggedData(String tag, InputStream inputStream, int responseCode, long modified, URI url) Deprecated.TaggedData(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
-
TaggedData
@Deprecated public TaggedData(String tag, InputStream inputStream, int responseCode, long modified, URI url) Deprecated. -
TaggedData
Deprecated. -
TaggedData
Deprecated. -
TaggedData
- Throws:
Exception
-
TaggedData
- Throws:
Exception
-
TaggedData
-
-
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
-