|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectorg.exist.xmldb.RemoteBinaryResource
public class RemoteBinaryResource
| Field Summary |
|---|
| Fields inherited from interface org.xmldb.api.modules.BinaryResource |
|---|
RESOURCE_TYPE |
| Constructor Summary | |
|---|---|
RemoteBinaryResource(RemoteCollection parent,
XmldbURI documentName)
|
|
| Method Summary | |
|---|---|
Object |
getContent()
Retrieves the content from the resource. |
int |
getContentLength()
|
Date |
getCreationTime()
|
DocumentType |
getDocType()
|
String |
getId()
Returns the unique id for this Resource or null if the
Resource is anonymous. |
Date |
getLastModificationTime()
|
String |
getMimeType()
|
Collection |
getParentCollection()
Returns the Collection instance that this resource is
associated with. |
Permission |
getPermissions()
|
String |
getResourceType()
Returns the resource type for this Resource. |
void |
setContent(Object obj)
Sets the content for this resource. |
void |
setContentLength(int len)
|
void |
setDocType(DocumentType doctype)
|
void |
setLexicalHandler(LexicalHandler handler)
|
void |
setMimeType(String mime)
|
void |
setPermissions(Permission perms)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteBinaryResource(RemoteCollection parent,
XmldbURI documentName)
throws XMLDBException
XMLDBException| Method Detail |
|---|
public Collection getParentCollection()
throws XMLDBException
ResourceCollection instance that this resource is
associated with. All resources must exist within the context of a
collection.
getParentCollection in interface ResourceXMLDBException - with expected error codes.ErrorCodes.VENDOR_ERROR for any vendor
specific errors that occur.
public String getId()
throws XMLDBException
ResourceResource or null if the
Resource is anonymous. The Resource will be
anonymous if it is obtained as the result of a query.
getId in interface ResourceXMLDBException - with expected error codes.ErrorCodes.VENDOR_ERROR for any vendor
specific errors that occur.
public String getResourceType()
throws XMLDBException
Resource
getResourceType in interface ResourceXMLDBException - with expected error codes.ErrorCodes.VENDOR_ERROR for any vendor
specific errors that occur.
public Object getContent()
throws XMLDBException
Resource
getContent in interface ResourceXMLDBException - with expected error codes.ErrorCodes.VENDOR_ERROR for any vendor
specific errors that occur.
public void setContent(Object obj)
throws XMLDBException
Resource
setContent in interface Resourceobj - the content value to set for the resource.
XMLDBException - with expected error codes.ErrorCodes.VENDOR_ERROR for any vendor
specific errors that occur.
public Date getCreationTime()
throws XMLDBException
getCreationTime in interface EXistResourceXMLDBException
public Date getLastModificationTime()
throws XMLDBException
getLastModificationTime in interface EXistResourceXMLDBExceptionpublic void setPermissions(Permission perms)
public Permission getPermissions()
getPermissions in interface EXistResourcepublic void setContentLength(int len)
public int getContentLength()
throws XMLDBException
getContentLength in interface EXistResourceXMLDBExceptionpublic void setLexicalHandler(LexicalHandler handler)
setLexicalHandler in interface EXistResourcepublic void setMimeType(String mime)
setMimeType in interface EXistResourcepublic String getMimeType()
getMimeType in interface EXistResource
public DocumentType getDocType()
throws XMLDBException
getDocType in interface EXistResourceXMLDBException
public void setDocType(DocumentType doctype)
throws XMLDBException
setDocType in interface EXistResourceXMLDBException
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||