Package com.yahoo.text
Class GenericWriter
- java.lang.Object
-
- java.io.Writer
-
- com.yahoo.text.GenericWriter
-
- All Implemented Interfaces:
java.io.Closeable
,java.io.Flushable
,java.lang.Appendable
,java.lang.AutoCloseable
- Direct Known Subclasses:
AbstractByteWriter
,ForwardWriter
,JavaWriterWriter
public abstract class GenericWriter extends java.io.Writer
This is a basic writer for presenting text. Its has the pattern as java.io.Writer, but it allows for more overrides for speed. This introduces additional interfaces in addition to the java.lang.Writer. The purpose is to allow for optimizations.- Since:
- 5.2
- Author:
- baldersheim
-
-
Constructor Summary
Constructors Constructor Description GenericWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GenericWriter
write(boolean i)
GenericWriter
write(byte i)
GenericWriter
write(char c)
GenericWriter
write(double i)
GenericWriter
write(float i)
GenericWriter
write(long i)
GenericWriter
write(short i)
GenericWriter
write(AbstractUtf8Array v)
GenericWriter
write(java.lang.CharSequence s)
-
-
-
Method Detail
-
write
public GenericWriter write(char c) throws java.io.IOException
- Throws:
java.io.IOException
-
write
public GenericWriter write(java.lang.CharSequence s) throws java.io.IOException
- Throws:
java.io.IOException
-
write
public GenericWriter write(long i) throws java.io.IOException
- Throws:
java.io.IOException
-
write
public GenericWriter write(short i) throws java.io.IOException
- Throws:
java.io.IOException
-
write
public GenericWriter write(byte i) throws java.io.IOException
- Throws:
java.io.IOException
-
write
public GenericWriter write(double i) throws java.io.IOException
- Throws:
java.io.IOException
-
write
public GenericWriter write(float i) throws java.io.IOException
- Throws:
java.io.IOException
-
write
public GenericWriter write(boolean i) throws java.io.IOException
- Throws:
java.io.IOException
-
write
public GenericWriter write(AbstractUtf8Array v) throws java.io.IOException
- Throws:
java.io.IOException
-
-