public class URIStorage extends Object implements IStorage
IStorage
will allow us to keep track of the URIHandler
that's
been used to load a given URI from this uri converter.Constructor and Description |
---|
URIStorage(URI uri,
URIHandler handler,
URIConverter converter)
Creates an URIStorage for the given URI an its associated handler.
|
Modifier and Type | Method and Description |
---|---|
Object |
getAdapter(Class adapter) |
InputStream |
getContents() |
IPath |
getFullPath() |
String |
getName() |
boolean |
isReadOnly() |
public URIStorage(URI uri, URIHandler handler, URIConverter converter)
uri
- The target uri of this storage.handler
- The URI handler that can be used to retrieve this URI's contents.converter
- The URI converter which created this storage.public Object getAdapter(Class adapter)
getAdapter
in interface IAdaptable
IAdaptable.getAdapter(java.lang.Class)
public InputStream getContents() throws CoreException
getContents
in interface IStorage
CoreException
IStorage.getContents()
public IPath getFullPath()
getFullPath
in interface IStorage
IStorage.getFullPath()
public String getName()
getName
in interface IStorage
IStorage.getName()
public boolean isReadOnly()
isReadOnly
in interface IStorage
IStorage.isReadOnly()
Copyright (c) 2006, 2014 Obeo and others. All rights reserved.