org.apache.maven.doxia.wrapper
Class OutputStreamWrapper

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

public class OutputStreamWrapper
extends Object

Wrapper for an output stream.

Version:
$Id$
Author:
Vincent Siveton
See Also:
Serialized Form

Field Summary
static String AUTO_FORMAT
           
 
Method Summary
 boolean equals(Object other)
          
 String getEncoding()
           
 String getFormat()
           
 OutputStream getOutputStream()
           
 String[] getSupportedFormat()
           
 int hashCode()
          
 String toString()
          
static OutputStreamWrapper valueOf(OutputStream out, String format, String encoding, 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

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)
Parameters:
out - not null
format - not null
encoding - not null
supportedFormat - not null
Returns:
a type safe output stream wrapper

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-2010 FuseSource. All Rights Reserved.