org.mortbay.util
Class ByteArrayISO8859Writer
java.lang.Object
|
+--java.io.Writer
|
+--org.mortbay.util.ByteArrayISO8859Writer
- public class ByteArrayISO8859Writer
- extends java.io.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.1 $
- Author:
- Greg Wilkins (gregw)
Methods inherited from class java.io.Writer |
write |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ByteArrayISO8859Writer
public ByteArrayISO8859Writer()
- Constructor.
ByteArrayISO8859Writer
public ByteArrayISO8859Writer(int capacity)
- Constructor.
- Parameters:
capacity
- Buffer capacity
capacity
public int capacity()
length
public int length()
getBuf
public byte[] getBuf()
getCapacity
public int getCapacity()
writeTo
public void writeTo(java.io.OutputStream out)
throws java.io.IOException
write
public void write(char c)
throws java.io.IOException
write
public void write(char[] ca)
throws java.io.IOException
- Overrides:
write
in class java.io.Writer
write
public void write(char[] ca,
int offset,
int length)
throws java.io.IOException
- Overrides:
write
in class java.io.Writer
write
public void write(java.lang.String s)
throws java.io.IOException
- Overrides:
write
in class java.io.Writer
write
public void write(java.lang.String s,
int offset,
int length)
throws java.io.IOException
- Overrides:
write
in class java.io.Writer
flush
public void flush()
- Overrides:
flush
in class java.io.Writer
reset
public void reset()
close
public void close()
- Overrides:
close
in class java.io.Writer
ensureCapacity
public void ensureCapacity(int n)
Copyright © 2000 Mortbay Consulting Pty. Ltd. All Rights Reserved.