org.apache.maven.doxia.wrapper
Class InputReaderWrapper

java.lang.Object
  extended by org.apache.maven.doxia.wrapper.InputReaderWrapper
All Implemented Interfaces:
Serializable

public class InputReaderWrapper
extends Object

Wrapper for an input reader.

Version:
$Id: InputReaderWrapper.java 697523 2008-09-21 14:29:09Z vsiveton $
Author:
Vincent Siveton
See Also:
Serialized Form

Field Summary
static String AUTO_FORMAT
           
 
Method Summary
 boolean equals(Object other)
          
 String getFormat()
           
 Reader getReader()
           
 String[] getSupportedFormat()
           
 int hashCode()
          
 String toString()
          
static InputReaderWrapper valueOf(Reader reader, String format, String[] supportedFormat)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

AUTO_FORMAT

public static final String AUTO_FORMAT
See Also:
Constant Field Values
Method Detail

getReader

public Reader getReader()
Returns:
the reader

valueOf

public static InputReaderWrapper valueOf(Reader reader,
                                         String format,
                                         String[] supportedFormat)
                                  throws IllegalArgumentException
Parameters:
reader - not null
format - not null
supportedFormat - not null
Returns:
a type safe input reader
Throws:
IllegalArgumentException - if any

getFormat

public String getFormat()
Returns:
the wanted format.

getSupportedFormat

public String[] getSupportedFormat()
Returns:
the supportedFormat

equals

public boolean equals(Object other)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2005-2009 The Apache Software Foundation. All Rights Reserved.