Package com.xmlmind.w2x.docx.packaging
Class Part
- java.lang.Object
-
- com.xmlmind.w2x.docx.packaging.Part
-
- All Implemented Interfaces:
Comparable<Part>
public final class Part extends Object implements Comparable<Part>
-
-
Field Summary
Fields Modifier and Type Field Description PackagecontainerStringcontentTypestatic Part[]EMPTY_LISTStringname
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Part other)Related[]getAllRelated()DocumentgetDocument()static StringgetDocumentURI(Document doc)InputStreamgetInputStream()RelatedgetRelated(String relId)Related[]getRelatedByRelation(String relation)PartgetRelatedPart(String relId)Part[]getRelatedPartByRelation(String relation)
-
-
-
Method Detail
-
compareTo
public int compareTo(Part other)
- Specified by:
compareToin interfaceComparable<Part>
-
getInputStream
public InputStream getInputStream() throws IOException
- Throws:
IOException
-
getDocument
public Document getDocument() throws IOException
- Throws:
IOException
-
getAllRelated
public Related[] getAllRelated()
-
-