org.mortbay.util

Class ByteArrayISO8859Writer

public class ByteArrayISO8859Writer extends Writer

Byte Array ISO 8859 writer. This class combines the features of a OutputStreamWriter for ISO8859 encoding with that of a ByteArrayOutputStream. It avoids many inefficiencies associated with these standard library classes. It has been optimized for standard ASCII characters.

Version: $Revision: 1.14 $

Author: Greg Wilkins (gregw)

Constructor Summary
ByteArrayISO8859Writer()
Constructor.
ByteArrayISO8859Writer(int capacity)
Constructor.
ByteArrayISO8859Writer(byte[] buf)
Method Summary
intcapacity()
voidclose()
voiddestroy()
voidensureSpareCapacity(int n)
protected voidfinalize()
voidflush()
byte[]getBuf()
byte[]getByteArray()
ObjectgetLock()
voidresetWriter()
voidsetLength(int l)
intsize()
intspareCapacity()
voidwrite(char c)
voidwrite(char[] ca)
voidwrite(char[] ca, int offset, int length)
voidwrite(String s)
voidwrite(String s, int offset, int length)
voidwriteTo(OutputStream out)

Constructor Detail

ByteArrayISO8859Writer

public ByteArrayISO8859Writer()
Constructor.

ByteArrayISO8859Writer

public ByteArrayISO8859Writer(int capacity)
Constructor.

Parameters: capacity Buffer capacity

ByteArrayISO8859Writer

public ByteArrayISO8859Writer(byte[] buf)

Method Detail

capacity

public int capacity()

close

public void close()

destroy

public void destroy()

ensureSpareCapacity

public void ensureSpareCapacity(int n)

finalize

protected void finalize()

flush

public void flush()

getBuf

public byte[] getBuf()

getByteArray

public byte[] getByteArray()

getLock

public Object getLock()

resetWriter

public void resetWriter()

setLength

public void setLength(int l)

size

public int size()

spareCapacity

public int spareCapacity()

write

public void write(char c)

write

public void write(char[] ca)

write

public void write(char[] ca, int offset, int length)

write

public void write(String s)

write

public void write(String s, int offset, int length)

writeTo

public void writeTo(OutputStream out)
Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.