be.ac.vub.cocompose.io
Interface StreamWriter

All Known Implementing Classes:
SAXWriter

public interface StreamWriter

Defines a common interface for all classes that need to write to a stream.

Since:
0.2.0
Version:
0.2.0, 03/12/2003
Author:
Dennis Wagelaar

Method Summary
 String getCharset()
          Gets the encoding character set (e.g.
 void setCharset(String charset)
          Sets the encoding character set (e.g.
 void setOutputStream(OutputStream outputStream)
          Sets the output stream for writing.
 

Method Detail

getCharset

public String getCharset()
Gets the encoding character set (e.g. "UTF-8").

Returns:
the character set.

setCharset

public void setCharset(String charset)
                throws UnsupportedEncodingException
Sets the encoding character set (e.g. "UTF-8").

Parameters:
charset - - the character set.
Throws:
UnsupportedEncodingException - - if the character set is not supported.

setOutputStream

public void setOutputStream(OutputStream outputStream)
Sets the output stream for writing.

Parameters:
outputStream - - the output stream.