Package org.eclipse.jetty.util
Class ByteArrayISO8859Writer
- java.lang.Object
-
- java.io.Writer
-
- org.eclipse.jetty.util.ByteArrayISO8859Writer
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.Appendable,java.lang.AutoCloseable
@Deprecated(since="2021-05-27") public class ByteArrayISO8859Writer extends java.io.WriterDeprecated.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
Constructors Constructor Description ByteArrayISO8859Writer()Deprecated.Constructor.ByteArrayISO8859Writer(byte[] buf)Deprecated.ByteArrayISO8859Writer(int capacity)Deprecated.Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intcapacity()Deprecated.voidclose()Deprecated.voiddestroy()Deprecated.voidensureSpareCapacity(int n)Deprecated.voidflush()Deprecated.byte[]getBuf()Deprecated.byte[]getByteArray()Deprecated.java.lang.ObjectgetLock()Deprecated.voidresetWriter()Deprecated.voidsetLength(int l)Deprecated.intsize()Deprecated.intspareCapacity()Deprecated.voidwrite(char c)Deprecated.voidwrite(char[] ca)Deprecated.voidwrite(char[] ca, int offset, int length)Deprecated.voidwrite(java.lang.String s)Deprecated.voidwrite(java.lang.String s, int offset, int length)Deprecated.voidwriteTo(java.io.OutputStream out)Deprecated.
-
-
-
Constructor Detail
-
ByteArrayISO8859Writer
public ByteArrayISO8859Writer()
Deprecated.Constructor.
-
ByteArrayISO8859Writer
public ByteArrayISO8859Writer(int capacity)
Deprecated.Constructor.- Parameters:
capacity- Buffer capacity
-
ByteArrayISO8859Writer
public ByteArrayISO8859Writer(byte[] buf)
Deprecated.
-
-
Method Detail
-
getLock
public java.lang.Object 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
public void writeTo(java.io.OutputStream out) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
write
public void write(char c) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
write
public void write(char[] ca) throws java.io.IOExceptionDeprecated.- Overrides:
writein classjava.io.Writer- Throws:
java.io.IOException
-
write
public void write(char[] ca, int offset, int length) throws java.io.IOExceptionDeprecated.- Specified by:
writein classjava.io.Writer- Throws:
java.io.IOException
-
write
public void write(java.lang.String s) throws java.io.IOExceptionDeprecated.- Overrides:
writein classjava.io.Writer- Throws:
java.io.IOException
-
write
public void write(java.lang.String s, int offset, int length) throws java.io.IOExceptionDeprecated.- Overrides:
writein classjava.io.Writer- Throws:
java.io.IOException
-
flush
public void flush()
Deprecated.- Specified by:
flushin interfacejava.io.Flushable- Specified by:
flushin classjava.io.Writer
-
resetWriter
public void resetWriter()
Deprecated.
-
close
public void close()
Deprecated.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein classjava.io.Writer
-
destroy
public void destroy()
Deprecated.
-
ensureSpareCapacity
public void ensureSpareCapacity(int n) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
getByteArray
public byte[] getByteArray()
Deprecated.
-
-