public class ResourceFileImpl extends Object implements ResourceFile
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
body |
protected String |
contentLocation |
protected String |
contentType |
protected ResourceType |
type |
| Constructor and Description |
|---|
ResourceFileImpl(String contentLocation,
String contentType,
ResourceType type,
byte[] body) |
| Modifier and Type | Method and Description |
|---|---|
BasicContainer |
asBasicContainer() |
Container |
asContainer() |
RdfSource |
asRdfSource() |
String |
getContentLocation() |
String |
getContentType() |
byte[] |
getEntityBody() |
String |
getEntityBodyText() |
ResourceType |
getType() |
boolean |
isBasicContainer() |
boolean |
isContainer() |
boolean |
isRdfSource() |
void |
setEntityBody(byte[] body) |
void |
setType(ResourceType type) |
protected String contentLocation
protected String contentType
protected ResourceType type
protected byte[] body
public ResourceFileImpl(String contentLocation, String contentType, ResourceType type, byte[] body)
public String getContentLocation()
getContentLocation in interface ResourceFilepublic String getContentType()
getContentType in interface ResourceFilepublic byte[] getEntityBody()
getEntityBody in interface ResourceFilepublic ResourceType getType()
getType in interface ResourceFilepublic String getEntityBodyText()
getEntityBodyText in interface ResourceFilepublic boolean isBasicContainer()
isBasicContainer in interface ResourceFilepublic BasicContainer asBasicContainer()
asBasicContainer in interface ResourceFilepublic boolean isContainer()
isContainer in interface ResourceFilepublic Container asContainer()
asContainer in interface ResourceFilepublic void setEntityBody(byte[] body)
setEntityBody in interface ResourceFilepublic boolean isRdfSource()
isRdfSource in interface ResourceFilepublic RdfSource asRdfSource()
asRdfSource in interface ResourceFilepublic void setType(ResourceType type)
setType in interface ResourceFileCopyright © 2019. All rights reserved.