Module 

Class WriterOutputStream

java.lang.Object
java.io.OutputStream
org.xnio.streams.WriterOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public final class WriterOutputStream extends OutputStream
An output stream which decodes bytes into a character writer.
  • Constructor Details

    • WriterOutputStream

      public WriterOutputStream(Writer writer)
      Construct a new instance.
      Parameters:
      writer - the writer to decode into
    • WriterOutputStream

      public WriterOutputStream(Writer writer, CharsetDecoder decoder)
      Construct a new instance.
      Parameters:
      writer - the writer to decode into
      decoder - the charset decoder to use
    • WriterOutputStream

      public WriterOutputStream(Writer writer, CharsetDecoder decoder, int bufferSize)
      Construct a new instance.
      Parameters:
      writer - the writer to decode into
      decoder - the charset decoder to use
      bufferSize - the buffer size to use
    • WriterOutputStream

      public WriterOutputStream(Writer writer, Charset charset)
      Construct a new instance.
      Parameters:
      writer - the writer to decode into
      charset - the character set to use
    • WriterOutputStream

      public WriterOutputStream(Writer writer, String charsetName) throws UnsupportedEncodingException
      Construct a new instance.
      Parameters:
      writer - the writer to decode into
      charsetName - the character set name to use
      Throws:
      UnsupportedEncodingException - if the character set name is unknown
  • Method Details