org.apache.fop.util

Class WriterOutputStream


public class WriterOutputStream
extends OutputStream

An OutputStream wrapper for a Writer.

Constructor Summary

WriterOutputStream(Writer writer)
Creates a new WriterOutputStream.
WriterOutputStream(Writer writer, String encoding)
Creates a new WriterOutputStream.

Method Summary

void
close()
void
flush()
void
write(byte[] buf)
void
write(byte[] buf, int offset, int length)
void
write(int b)

Constructor Details

WriterOutputStream

public WriterOutputStream(Writer writer)
Creates a new WriterOutputStream.
Parameters:
writer - the Writer to write to

WriterOutputStream

public WriterOutputStream(Writer writer,
                          String encoding)
Creates a new WriterOutputStream.
Parameters:
writer - the Writer to write to
encoding - the encoding to use, or null if the default encoding should be used

Method Details

close

public void close()
            throws IOException

flush

public void flush()
            throws IOException

write

public void write(byte[] buf)
            throws IOException

write

public void write(byte[] buf,
                  int offset,
                  int length)
            throws IOException

write

public void write(int b)
            throws IOException

Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.