aQute.bnd.service.url
Class TaggedData
java.lang.Object
aQute.bnd.service.url.TaggedData
public class TaggedData
- extends Object
Represents a data stream that has a tag associated with it; the primary
use-case is an HTTP response stream with an ETag header.
- Author:
- Neil Bartlett
|
Method Summary |
InputStream |
getInputStream()
Returns the input stream containing the resource data. |
String |
getTag()
Returns the ETag for the retrieved resource, or null if the ETag
was not provided by the server. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TaggedData
public TaggedData(String tag,
InputStream inputStream)
getTag
public String getTag()
- Returns the ETag for the retrieved resource, or
null if the ETag
was not provided by the server.
getInputStream
public InputStream getInputStream()
- Returns the input stream containing the resource data.
Copyright © 2014 aQute SARL. All rights reserved.