org.codehaus.plexus.util.xml

Class XmlStreamWriter


public class XmlStreamWriter
extends Writer

Character stream that handles (or at least attemtps to) all the necessary Voodo to figure out the charset encoding of the XML document written to the stream.
Version:
$Id: XmlStreamWriter.java 6697 2007-07-28 12:25:52Z hboutemy $
Author:
Herve Boutemy
Since:
1.4.4

Constructor Summary

XmlStreamWriter(File file)
XmlStreamWriter(OutputStream out)

Method Summary

void
close()
void
flush()
String
getEncoding()
void
write(char[] cbuf, int off, int len)

Constructor Details

XmlStreamWriter

public XmlStreamWriter(File file)
            throws FileNotFoundException

XmlStreamWriter

public XmlStreamWriter(OutputStream out)

Method Details

close

public void close()
            throws IOException

flush

public void flush()
            throws IOException

getEncoding

public String getEncoding()

write

public void write(char[] cbuf,
                  int off,
                  int len)
            throws IOException