|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Parts belong to documents (or versions of documents), and are the things that contain the actual data of the document.
A part is always associated with a PartType
.
The repository itself does not really place any restrictions
on the kind of data that can be contained in a part. However,
parts whose part type's PartType.isDaisyHtml()
method returns true should contain XML-well-formed HTML (not namespaced XHTML).
Note that a part has no setters methods, modifications can only
be done through the containing Document
. This is because
parts can also be obtained from Version
s, which are not
modifiable.
Method Summary | |
byte[] |
getData()
Get the actual data stored in this part. |
java.io.InputStream |
getDataStream()
Get the data stored in this part. |
java.lang.String |
getFileName()
Get the file name for this part, can be null. |
java.lang.String |
getMimeType()
Get the mime-type of the data currently stored in this part. |
long |
getSize()
Get the size of the data. |
long |
getTypeId()
The id of the part type of this part. |
java.lang.String |
getTypeName()
Get the name of the part type. |
org.outerx.daisy.x10.PartDocument |
getXml()
Get an XML document describing this part. |
Method Detail |
public long getTypeId()
RepositorySchema
.
public java.lang.String getTypeName()
public java.lang.String getMimeType()
public java.lang.String getFileName()
public byte[] getData() throws RepositoryException
RepositoryException
public java.io.InputStream getDataStream() throws RepositoryException
RepositoryException
public long getSize()
public org.outerx.daisy.x10.PartDocument getXml()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |