org.apache.maven.doxia.wrapper
Class OutputFileWrapper
java.lang.Object
org.apache.maven.doxia.wrapper.OutputFileWrapper
- All Implemented Interfaces:
- Serializable
public class OutputFileWrapper
- extends Object
Wrapper for an output file.
- Version:
- $Id: OutputFileWrapper.java 712860 2008-11-10 22:54:37Z hboutemy $
- Author:
- Vincent Siveton
- See Also:
- Serialized Form
AUTO_ENCODING
public static final String AUTO_ENCODING
- See Also:
- Constant Field Values
AUTO_FORMAT
public static final String AUTO_FORMAT
- See Also:
- Constant Field Values
valueOf
public static OutputFileWrapper valueOf(String absolutePath,
String format,
String[] supportedFormat)
throws IllegalArgumentException,
UnsupportedEncodingException
- Parameters:
absolutePath - not nullformat - not nullsupportedFormat - not null
- Returns:
- a type safe output writer
- Throws:
IllegalArgumentException - if any.
UnsupportedEncodingException - if the encoding is unsupported.
valueOf
public static OutputFileWrapper valueOf(String absolutePath,
String format,
String charsetName,
String[] supportedFormat)
throws IllegalArgumentException,
UnsupportedEncodingException
- Parameters:
absolutePath - not nullformat - not nullcharsetName - could be nullsupportedFormat - not null
- Returns:
- a type safe output writer
- Throws:
IllegalArgumentException - if any.
UnsupportedEncodingException - if the encoding is unsupported.
getFile
public File getFile()
- Returns:
- the file
getEncoding
public String getEncoding()
- Returns:
- the encoding used for the file or
null if not specified.
equals
public boolean equals(Object other)
-
hashCode
public int hashCode()
-
toString
public String toString()
-
getFormat
public String getFormat()
- Returns:
- the wanted format.
getSupportedFormat
public String[] getSupportedFormat()
- Returns:
- the supportedFormat
Copyright © 2005-2009 The Apache Software Foundation. All Rights Reserved.