org.eclipse.jetty.util
类 ByteArrayISO8859Writer
java.lang.Object
java.io.Writer
org.eclipse.jetty.util.ByteArrayISO8859Writer
- 所有已实现的接口:
- Closeable, Flushable, Appendable
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.
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ByteArrayISO8859Writer
public ByteArrayISO8859Writer()
- Constructor.
ByteArrayISO8859Writer
public ByteArrayISO8859Writer(int capacity)
- Constructor.
- 参数:
capacity - Buffer capacity
ByteArrayISO8859Writer
public ByteArrayISO8859Writer(byte[] buf)
getLock
public Object getLock()
size
public int size()
capacity
public int capacity()
spareCapacity
public int spareCapacity()
setLength
public void setLength(int l)
getBuf
public byte[] getBuf()
writeTo
public void writeTo(OutputStream out)
throws IOException
- 抛出:
IOException
write
public void write(char c)
throws IOException
- 抛出:
IOException
write
public void write(char[] ca)
throws IOException
- 覆盖:
- 类
Writer 中的 write
- 抛出:
IOException
write
public void write(char[] ca,
int offset,
int length)
throws IOException
- 指定者:
- 类
Writer 中的 write
- 抛出:
IOException
write
public void write(String s)
throws IOException
- 覆盖:
- 类
Writer 中的 write
- 抛出:
IOException
write
public void write(String s,
int offset,
int length)
throws IOException
- 覆盖:
- 类
Writer 中的 write
- 抛出:
IOException
flush
public void flush()
- 指定者:
- 接口
Flushable 中的 flush - 指定者:
- 类
Writer 中的 flush
resetWriter
public void resetWriter()
close
public void close()
- 指定者:
- 接口
Closeable 中的 close - 指定者:
- 类
Writer 中的 close
destroy
public void destroy()
ensureSpareCapacity
public void ensureSpareCapacity(int n)
throws IOException
- 抛出:
IOException
getByteArray
public byte[] getByteArray()
Copyright © 2013. All Rights Reserved.