| Modifier and Type | Method and Description |
|---|---|
IResource |
IRepositoryWriter.createResource(String path)
This method creates a new empty resource at the specified path.
|
IResource |
IRepositoryWriter.createResource(String path,
byte[] content)
This method creates a new resource at the specified path and fills it
with the specified content.
|
IResource |
ICollection.createResource(String name,
byte[] content)
Create resource under this collection by recognizing the content type and binary flag by its file extension.
|
IResource |
IRepositoryWriter.createResource(String path,
byte[] content,
boolean isBinary,
String contentType)
This method creates a new empty resource at the specified path.
|
IResource |
ICollection.createResource(String name,
byte[] content,
boolean isBinary,
String contentType)
Create resource under this collection by specifying the binary flag.
|
IResource |
IRepositoryWriter.createResource(String path,
byte[] content,
boolean isBinary,
String contentType,
boolean override)
This method creates a new empty, or override resource at the specified path.
|
IResource |
IRepositoryReader.getResource(String path)
Returns an instance of
IResource which represents the
resource located at the specified path. |
IResource |
ICollection.getResource(String name)
Returns the resource with the specified name contained in this
collection.
|
| Modifier and Type | Method and Description |
|---|---|
List<IResource> |
ICollection.getResources()
Returns a list of all the resources held by this collection.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
ResourceUtil.getResourceExtension(IResource resource)
Returns the extension of the resource name if there is such, otherwise
returns
null. |
static String |
ResourceUtil.getResourcePureName(IResource resource)
Returns the name of a resource without the extension.
|
void |
ICollection.removeResource(IResource resource)
Removes the child resource represented by the parameter.
|
Copyright © 2010–2018 Eclipse Foundation. All rights reserved.