org.apache.fop.util
Class WriterOutputStream
OutputStream
org.apache.fop.util.WriterOutputStream
public class WriterOutputStream
extends OutputStream
An OutputStream wrapper for a Writer.
WriterOutputStream
public WriterOutputStream(Writer writer)
Creates a new WriterOutputStream.
writer
- the Writer to write to
WriterOutputStream
public WriterOutputStream(Writer writer,
String encoding)
Creates a new WriterOutputStream.
writer
- the Writer to write toencoding
- the encoding to use, or null if the default encoding should be used
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-2007 The Apache Software Foundation. All Rights Reserved.