|
Qizx fe-4.4p2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NonXMLDocument
Represents a non-XML Document stored in a XML Library.
Its contents is a plain sequence of bytes, and can be read through a sequential Stream.
When importing in the database (using Library.importNonXMLDocument(java.lang.String, boolean, java.io.InputStream)
)
compression can be specified. Compression is recommended for text-like data and
not recommended for already compressed data such as images.
As a LibraryMember
, a NonXMLDocument can have searchable properties
(aka metadata).
It is recommended to set property "mime-type
" to the value of
the data's mime-type, so that the contents can be later properly rendered.
LibraryMember
Field Summary |
---|
Fields inherited from interface com.qizx.api.LibraryMember |
---|
COLLECTION, DOCUMENT, NATURE, NONXMLDOC, PATH |
Method Summary | |
---|---|
boolean |
isCompressed()
Returns true if the contained data is compressed. |
InputStream |
open()
Opens for sequential read. |
long |
size()
Returns the uncompressed size in bytes of the contained data. |
Methods inherited from interface com.qizx.api.LibraryMember |
---|
contains, copyTo, delete, exists, getIntegerProperty, getLibrary, getName, getParent, getParentPath, getPath, getProperty, getPropertyNames, hasProperty, isCollection, isDocument, lock, removeProperty, renameTo, setIntegerProperty, setProperty |
Method Detail |
---|
long size() throws DataModelException
DataModelException
boolean isCompressed() throws DataModelException
DataModelException
InputStream open() throws DataModelException
DataModelException
- if the Blob is deleted; common causes
|
© 2010 Axyana Software | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |