public class PSResource extends Object
Note: this object does not support binary resources (such as images).
Constructor and Description |
---|
PSResource()
Default constructor.
|
PSResource(String location,
String content)
Creates a new resource at the specified location and content.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes() |
String |
getContent() |
String |
getLocation() |
boolean |
isBinary() |
void |
setBytes(byte[] bytes) |
void |
setContent(String content) |
void |
setLocation(String location) |
public String getLocation()
public String getContent()
public byte[] getBytes()
public boolean isBinary()
true
if the resource is represented as a bytes rather then text.public void setLocation(String location)
location
- the location to setpublic void setContent(String content)
content
- the content to setpublic void setBytes(byte[] bytes)
bytes
- the bytes to setCopyright © 2016 Allette Systems. All rights reserved.