public class ByteArrayISO8859Writer
extends java.io.Writer
Modifier and Type | Field and Description |
---|---|
private ByteArrayOutputStream2 |
_bout |
private byte[] |
_buf |
private boolean |
_fixed |
private int |
_size |
private java.io.OutputStreamWriter |
_writer |
Constructor and Description |
---|
ByteArrayISO8859Writer()
Constructor.
|
ByteArrayISO8859Writer(byte[] buf) |
ByteArrayISO8859Writer(int capacity)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
capacity() |
void |
close() |
void |
destroy() |
void |
ensureSpareCapacity(int n) |
void |
flush() |
byte[] |
getBuf() |
byte[] |
getByteArray() |
java.lang.Object |
getLock() |
void |
resetWriter() |
void |
setLength(int l) |
int |
size() |
int |
spareCapacity() |
void |
write(char c) |
void |
write(char[] ca) |
void |
write(char[] ca,
int offset,
int length) |
void |
write(java.lang.String s) |
void |
write(java.lang.String s,
int offset,
int length) |
private void |
writeEncoded(char[] ca,
int offset,
int length) |
void |
writeTo(java.io.OutputStream out) |
private byte[] _buf
private int _size
private ByteArrayOutputStream2 _bout
private java.io.OutputStreamWriter _writer
private boolean _fixed
public ByteArrayISO8859Writer()
public ByteArrayISO8859Writer(int capacity)
capacity
- Buffer capacitypublic ByteArrayISO8859Writer(byte[] buf)
public java.lang.Object getLock()
public int size()
public int capacity()
public int spareCapacity()
public void setLength(int l)
public byte[] getBuf()
public void writeTo(java.io.OutputStream out) throws java.io.IOException
java.io.IOException
public void write(char c) throws java.io.IOException
java.io.IOException
public void write(char[] ca) throws java.io.IOException
write
in class java.io.Writer
java.io.IOException
public void write(char[] ca, int offset, int length) throws java.io.IOException
write
in class java.io.Writer
java.io.IOException
public void write(java.lang.String s) throws java.io.IOException
write
in class java.io.Writer
java.io.IOException
public void write(java.lang.String s, int offset, int length) throws java.io.IOException
write
in class java.io.Writer
java.io.IOException
private void writeEncoded(char[] ca, int offset, int length) throws java.io.IOException
java.io.IOException
public void flush()
flush
in interface java.io.Flushable
flush
in class java.io.Writer
public void resetWriter()
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.Writer
public void destroy()
public void ensureSpareCapacity(int n) throws java.io.IOException
java.io.IOException
public byte[] getByteArray()