org.mortbay.util
Class ByteArrayISO8859Writer
Writer
org.mortbay.util.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.
ByteArrayISO8859Writer
public ByteArrayISO8859Writer()
Constructor.
ByteArrayISO8859Writer
public ByteArrayISO8859Writer(byte[] buf)
ByteArrayISO8859Writer
public ByteArrayISO8859Writer(int capacity)
Constructor.
capacity
- Buffer capacity
capacity
public int capacity()
destroy
public void destroy()
ensureSpareCapacity
public void ensureSpareCapacity(int n)
throws IOException
finalize
protected void finalize()
getBuf
public byte[] getBuf()
getByteArray
public byte[] getByteArray()
getLock
public Object getLock()
resetWriter
public void resetWriter()
setLength
public void setLength(int l)
spareCapacity
public int spareCapacity()
write
public void write(String s)
throws IOException
write
public void write(String s,
int offset,
int length)
throws IOException
write
public void write(char c)
throws IOException
write
public void write(char[] ca)
throws IOException
write
public void write(char[] ca,
int offset,
int length)
throws IOException
writeTo
public void writeTo(OutputStream out)
throws IOException
Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.