org.apache.maven.doxia.wrapper
Class OutputStreamWrapper
java.lang.Object
org.apache.maven.doxia.wrapper.OutputStreamWrapper
- All Implemented Interfaces:
- Serializable
public class OutputStreamWrapper
- extends Object
Wrapper for an output stream.
- Version:
- $Id: OutputStreamWrapper.java 712866 2008-11-10 23:12:36Z hboutemy $
- Author:
- Vincent Siveton
- See Also:
- Serialized Form
AUTO_FORMAT
public static final String AUTO_FORMAT
- See Also:
- Constant Field Values
getOutputStream
public OutputStream getOutputStream()
- Returns:
- the output stream
getEncoding
public String getEncoding()
- Returns:
- the encoding
valueOf
public static OutputStreamWrapper valueOf(OutputStream out,
String format,
String encoding,
String[] supportedFormat)
throws IllegalArgumentException
- Parameters:
out - not nullformat - not nullsupportedFormat - not null
- Returns:
- a type safe output stream wrapper
- Throws:
IllegalArgumentException - if any.
UnsupportedEncodingException - if the encoding is unsupported.
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.