|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.poi.POIXMLRelation
public abstract class POIXMLRelation
Represents a descriptor of a OOXML relation.
Constructor Summary | |
---|---|
POIXMLRelation(java.lang.String type,
java.lang.String rel,
java.lang.String defaultName)
Instantiates a POIXMLRelation. |
|
POIXMLRelation(java.lang.String type,
java.lang.String rel,
java.lang.String defaultName,
java.lang.Class<? extends POIXMLDocumentPart> cls)
Instantiates a POIXMLRelation. |
Method Summary | |
---|---|
java.io.InputStream |
getContents(PackagePart corePart)
Fetches the InputStream to read the contents, based of the specified core part, for which we are defined as a suitable relationship |
java.lang.String |
getContentType()
Return the content type. |
java.lang.String |
getDefaultFileName()
Return the default part name. |
java.lang.String |
getFileName(int index)
Returns the filename for the nth one of these, e.g. |
java.lang.Integer |
getFileNameIndex(POIXMLDocumentPart part)
Returns the index of the filename within the package for the given part. |
java.lang.String |
getRelation()
Return the relationship, the kind of connection between a source part and a target part in a package. |
java.lang.Class<? extends POIXMLDocumentPart> |
getRelationClass()
Return type of the object used to construct instances of this relationship |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public POIXMLRelation(java.lang.String type, java.lang.String rel, java.lang.String defaultName, java.lang.Class<? extends POIXMLDocumentPart> cls)
type
- content typerel
- relationshipdefaultName
- default item namecls
- defines what object is used to construct instances of this relationshippublic POIXMLRelation(java.lang.String type, java.lang.String rel, java.lang.String defaultName)
type
- content typerel
- relationshipdefaultName
- default item nameMethod Detail |
---|
public java.lang.String getContentType()
public java.lang.String getRelation()
public java.lang.String getDefaultFileName()
public java.lang.String getFileName(int index)
index
- the suffix for the document type
public java.lang.Integer getFileNameIndex(POIXMLDocumentPart part)
part
- the part to read the suffix from
public java.lang.Class<? extends POIXMLDocumentPart> getRelationClass()
public java.io.InputStream getContents(PackagePart corePart) throws java.io.IOException, InvalidFormatException
java.io.IOException
InvalidFormatException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |