|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectse.biltmore.tools.odttoapt.maven.plugin.ODT2APTMojo.ODTImageHandler
public class ODT2APTMojo.ODTImageHandler
Provides an implementatin of ImageHandler.
| Field Summary | |
|---|---|
private ZipFile |
odtDocument
The odt document as a zip file. |
| Constructor Summary | |
|---|---|
ODT2APTMojo.ODTImageHandler(ZipFile odtDocument)
Creates a new ODTImageHandler instance. |
|
| Method Summary | |
|---|---|
void |
extractImage(String sourcePath)
Extracts an image from an .odt file. |
String |
getExtractedPath(String sourcePath)
Returns the extracted path of the image path specified. |
String |
getImageAPTLinkPath(String sourcePath)
Returns the path to use in the APT document to the image. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private ZipFile odtDocument
| Constructor Detail |
|---|
public ODT2APTMojo.ODTImageHandler(ZipFile odtDocument)
odtDocument - The odt document to extract the image from.| Method Detail |
|---|
public void extractImage(String sourcePath)
throws SAXException
extractImage in interface ImageHandlersourcePath - The path relative to the .odt file root.
SAXException - on any failure.
public String getExtractedPath(String sourcePath)
throws SAXException
getExtractedPath in interface ImageHandlersourcePath - The path to get the extracted path for.
SAXException
public String getImageAPTLinkPath(String sourcePath)
throws SAXException
getImageAPTLinkPath in interface ImageHandlersourcePath - The path to produce the APT link path from.
SAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||