se.biltmore.tools.odttoapt.maven.plugin
Interface ImageHandler

All Known Implementing Classes:
ODT2APTMojo.ODTImageHandler

public interface ImageHandler

Implementation of this is passed to OdtSAXHandler to help extract images references by parsed contents.


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.
 

Method Detail

extractImage

void extractImage(String sourcePath)
                  throws SAXException
Extracts an image from an .odt file.

Parameters:
sourcePath - The path relative to the .odt file root.
Throws:
SAXException - on any failure.

getExtractedPath

String getExtractedPath(String sourcePath)
                        throws SAXException
Returns the extracted path of the image path specified.

Parameters:
sourcePath - The path to get the extracted path for.
Throws:
SAXException

getImageAPTLinkPath

String getImageAPTLinkPath(String sourcePath)
                           throws SAXException
Returns the path to use in the APT document to the image.

Parameters:
sourcePath - The path to produce the APT link path from.
Throws:
SAXException


Copyright © 2009-2010 Biltmore Group AB. All Rights Reserved.