public class ServiceSourceFactory.ServiceSource extends Object implements Source
| Modifier and Type | Field and Description | 
|---|---|
private Source | 
_source  | 
private ServiceSourceFactory.SourceType | 
_type  | 
| Constructor and Description | 
|---|
ServiceSource(Source source,
             ServiceSourceFactory.SourceType type)
Creates the service source 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
exists()  | 
long | 
getContentLength()  | 
InputStream | 
getInputStream()  | 
long | 
getLastModified()  | 
String | 
getMimeType()  | 
String | 
getScheme()  | 
ServiceSourceFactory.SourceType | 
getSourceType()
Get the source type of this source 
 | 
String | 
getURI()  | 
SourceValidity | 
getValidity()  | 
Source | 
getWrappedSource()
Get the wrapped source 
 | 
void | 
refresh()  | 
private ServiceSourceFactory.SourceType _type
public ServiceSource(Source source, ServiceSourceFactory.SourceType type)
source - The source to wraptype - The type of the sourcepublic ServiceSourceFactory.SourceType getSourceType()
public Source getWrappedSource()
public long getContentLength()
getContentLength in interface Sourcepublic InputStream getInputStream() throws IOException, SourceNotFoundException
getInputStream in interface SourceIOExceptionSourceNotFoundExceptionpublic long getLastModified()
getLastModified in interface Sourcepublic String getMimeType()
getMimeType in interface Sourcepublic SourceValidity getValidity()
getValidity in interface Source