|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
public interface ExtendedResource
An extension to BinaryResource interface, which adds the common methods needed by LocalBinaryResource and RemoteBinaryResource, so they can be streamlined.
| Method Summary | |
|---|---|
void |
freeLocalResources()
It erases the internal reference to any file set with getContentIntoAFile, either explicitly or implicitly using, for instance, getStreamContent. |
void |
getContentIntoAFile(File localfile)
It saves the resource to the local file given as input parameter. |
void |
getContentIntoAStream(OutputStream os)
It saves the resource to the local stream given as input parameter. |
Object |
getExtendedContent()
It returns an object representing the content, in the representation which needs less memory. |
InputStream |
getStreamContent()
It returns an stream to the content, whichever it is its origin |
long |
getStreamLength()
It returns the length of the content, whichever it is its origin |
| Method Detail |
|---|
Object getExtendedContent()
throws org.xmldb.api.base.XMLDBException
org.xmldb.api.base.XMLDBException
InputStream getStreamContent()
throws org.xmldb.api.base.XMLDBException
org.xmldb.api.base.XMLDBException
long getStreamLength()
throws org.xmldb.api.base.XMLDBException
org.xmldb.api.base.XMLDBException
void getContentIntoAFile(File localfile)
throws org.xmldb.api.base.XMLDBException
org.xmldb.api.base.XMLDBException
void getContentIntoAStream(OutputStream os)
throws org.xmldb.api.base.XMLDBException
org.xmldb.api.base.XMLDBExceptionvoid freeLocalResources()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||