Package org.eclipse.jetty.util
Class ByteArrayISO8859Writer
java.lang.Object
java.io.Writer
org.eclipse.jetty.util.ByteArrayISO8859Writer
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable
Deprecated.
The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
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.
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Constructor.ByteArrayISO8859Writer(byte[] buf) Deprecated.ByteArrayISO8859Writer(int capacity) Deprecated.Constructor. -
Method Summary
Modifier and TypeMethodDescriptionintcapacity()Deprecated.voidclose()Deprecated.voiddestroy()Deprecated.voidensureSpareCapacity(int n) Deprecated.voidflush()Deprecated.byte[]getBuf()Deprecated.byte[]Deprecated.getLock()Deprecated.voidDeprecated.voidsetLength(int l) Deprecated.intsize()Deprecated.intDeprecated.voidwrite(char c) Deprecated.voidwrite(char[] ca) Deprecated.voidwrite(char[] ca, int offset, int length) Deprecated.voidDeprecated.voidDeprecated.voidwriteTo(OutputStream out) Deprecated.
-
Constructor Details
-
ByteArrayISO8859Writer
public ByteArrayISO8859Writer()Deprecated.Constructor. -
ByteArrayISO8859Writer
public ByteArrayISO8859Writer(int capacity) Deprecated.Constructor.- Parameters:
capacity- Buffer capacity
-
ByteArrayISO8859Writer
public ByteArrayISO8859Writer(byte[] buf) Deprecated.
-
-
Method Details
-
getLock
Deprecated. -
size
public int size()Deprecated. -
capacity
public int capacity()Deprecated. -
spareCapacity
public int spareCapacity()Deprecated. -
setLength
public void setLength(int l) Deprecated. -
getBuf
public byte[] getBuf()Deprecated. -
writeTo
Deprecated.- Throws:
IOException
-
write
Deprecated.- Throws:
IOException
-
write
Deprecated.- Overrides:
writein classWriter- Throws:
IOException
-
write
Deprecated.- Specified by:
writein classWriter- Throws:
IOException
-
write
Deprecated.- Overrides:
writein classWriter- Throws:
IOException
-
write
Deprecated.- Overrides:
writein classWriter- Throws:
IOException
-
flush
public void flush()Deprecated. -
resetWriter
public void resetWriter()Deprecated. -
close
public void close()Deprecated. -
destroy
public void destroy()Deprecated. -
ensureSpareCapacity
Deprecated.- Throws:
IOException
-
getByteArray
public byte[] getByteArray()Deprecated.
-