org.xmldb.api.sdk.modules
public abstract class BaseResource extends Object implements Resource
getContent
method returns a OutputStream
and the standard setContent expects an InputStream
.
The stream types should be better clarified
Field Summary | |
---|---|
protected String | content |
protected String | id |
protected Collection | parent |
Constructor Summary | |
---|---|
BaseResource(Collection parent, String id)
Create a new BinaryResource without any content. | |
BaseResource(Collection parent, String id, String content)
Create a fully initialized BinaryResource |
Method Summary | |
---|---|
String | getId()
Returns the unique id for this Resource or null if the resource is
anonymous.
|
Collection | getParentCollection()
Returns the Collection instance that this resource is
associated with.
|
Returns: the id for the Resource or null if no id exists.
Collection
instance that this resource is
associated with.
Returns: the collection associated with the resource.