Maven module :un.api : api-encoding :
Class : un.api.io.CharOutputStream
Extends/Implements : un.api.io.WrapOutputStream
Subclasses : -

Character output stream.
Wraps a ByteOutpustStream and provide methods for Characters writing.
author  Johann Sorel


Variables : -
Functions : CharOutputStream, CharOutputStream, CharOutputStream, write, write, write, write, writeLine, endLine




New character output stream with UTF-8 encoding
and '\n' end of line character.

@param out wrapped byte output stream, not null
public void CharOutputStream (ByteOutputStream out)


New character output stream with '\n' end of line character.

@param out wrapped byte output stream, not null
@param encoding output character encoding, not null
public void CharOutputStream (ByteOutputStream out, CharEncoding encoding)


New character output stream.
param  out wrapped byte output stream, not null
param  encoding output character encoding, not null
param  endofline End of line character, not null
public void CharOutputStream (ByteOutputStream out, CharEncoding encoding, Char endofline)


Write a single character from a unicode code point.
param  unicode unicode code point of character to write
return  this char stream
throws  IOException
public CharOutputStream write (int unicode)


Write a single character.
param  c character to write, not null
return  this char stream
throws  IOException
public CharOutputStream write (Char c)


Write a character sequence.
param  s sequence to write, not null
return  this char stream
throws  IOException
public CharOutputStream write (Chars s)


Write a single byte if the outputstream.
Caution when using this method, you may break the encoding.
param  b byte to write.
throws  IOException
public void write (byte b)


Write a line.
The end of line character will be added after the line.
param  line, can be null
return  this char stream
throws  IOException
public CharOutputStream writeLine (Chars line)


Write end of line character.
return  this char stream
throws  IOException
public CharOutputStream endLine ()