org.apache.maven.doxia.util
Class ConverterUtil
java.lang.Object
org.apache.maven.doxia.util.ConverterUtil
public class ConverterUtil
- extends Object
Utility class to play with Doxia objects.
- Version:
- $Id: ConverterUtil.java 712860 2008-11-10 22:54:37Z hboutemy $
- Author:
- Vincent Siveton
|
Method Summary |
static org.apache.maven.doxia.parser.Parser |
getParser(org.codehaus.plexus.PlexusContainer plexus,
String format,
String[] supportedFormats)
|
static org.apache.maven.doxia.sink.SinkFactory |
getSinkFactory(org.codehaus.plexus.PlexusContainer plexus,
String format,
String[] supportedFormats)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConverterUtil
public ConverterUtil()
getParser
public static org.apache.maven.doxia.parser.Parser getParser(org.codehaus.plexus.PlexusContainer plexus,
String format,
String[] supportedFormats)
throws org.codehaus.plexus.component.repository.exception.ComponentLookupException,
UnsupportedFormatException
- Parameters:
plexus - not nullformat - not nullsupportedFormats - not null
- Returns:
- an instance of
Parser depending on the format.
- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException - if could not find the Parser for the given format.
UnsupportedFormatException - if the found parser is not instantiated.
IllegalArgumentException - if any parameter is null
getSinkFactory
public static org.apache.maven.doxia.sink.SinkFactory getSinkFactory(org.codehaus.plexus.PlexusContainer plexus,
String format,
String[] supportedFormats)
throws org.codehaus.plexus.component.repository.exception.ComponentLookupException,
UnsupportedFormatException
- Parameters:
plexus - not nullformat - not nullsupportedFormats - not null
- Returns:
- an instance of
SinkFactory depending on the given format.
- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException - if could not find the SinkFactory for the given format.
UnsupportedFormatException - if the found sink is not instantiated.
IOException
IllegalArgumentException - if any parameter is null
Copyright © 2005-2009 The Apache Software Foundation. All Rights Reserved.