public interface InputStreamProvider
Modifier and Type | Method and Description |
---|---|
Object |
getCachedResult()
Returns the cached result from reading and parsing this
provider.
|
String |
getDisplayName()
Returns the name of the target location, suitable
for user display.
|
Object |
getIdentifier()
Returns an identifier object that uniquely
identifies the target location.
|
boolean |
hasSourceChanged()
Returns true if the underlying target has changed
since the last call to openInputStream()
|
InputStream |
openInputStream()
Return an InputStream for the target.
|
void |
setCachedResult(Object value)
Stores the cached result of reading and parsing this
provider.
|
InputStream openInputStream() throws IOException
IOException
String getDisplayName()
Object getIdentifier()
Object identifierA = providerA.getIdentifier(); Object identifierB = providerB.getIdentifier();... then:
if (identifierA.equals(identifierB)) ...then the two providers must point to the same location.
boolean hasSourceChanged()
Object getCachedResult()
CachingNameResolver
void setCachedResult(Object value)
CachingNameResolver
Copyright © 2001-2016 The Apache Software Foundation. All Rights Reserved.