public class FileResource extends AbstractRemoteResource
| Constructor and Description |
|---|
FileResource(long id)
Create a new file resource
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Get the name of the resource
|
protected String |
getResourceType()
Get the OSS Index resource type.
|
void |
setName(String name)
Override the name provided by OSS Index.
|
exists, getIdpublic FileResource(long id)
id - The ID of the resource in OSS Indexpublic String getName()
public void setName(String name)
name - File's nameprotected String getResourceType()
AbstractRemoteResourcegetResourceType in class AbstractRemoteResourceCopyright © 2015. All rights reserved.