Package java.io
Class CharArrayWriter

Public Method write

void write(char[] buf, int offset, int len)

Overrides:

void write(int b)

Overrides:

void write(String str, int offset, int len)

Overrides:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

write(char[] buf, int offset, int len) method:

This method writes the defined character array to the internal buffer. The offset parameter defines the offset into the character array. The len parameter defines the number of characters to write.

write(int b) method:

This method writes a character to the buffer.

write(String str, int offset, int len) method:

This method writes the defined string to the internal character buffer. The offset parameter defines the offset into the character of the string. The len parameter defines the number of characters to write.

Example

   char[] ch = {'H','E','L','L','O'};
   CharArrayWriter caw = new CharArrayWriter();
   caw.write(ch);

The write method writes the elements of the character array to the buffer.