-
public interface EncoderEncodes data as it is written to the provided output.- Author:
- AO Industries, Inc.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Encoderappend(char c, Appendable out)Encoderappend(CharSequence csq, int start, int end, Appendable out)Encoderappend(CharSequence csq, Appendable out)voidwrite(char[] cbuf, int off, int len, Writer out)voidwrite(char[] cbuf, Writer out)voidwrite(int c, Writer out)voidwrite(String str, int off, int len, Writer out)voidwrite(String str, Writer out)voidwritePrefixTo(Appendable out)This is called before any data is written.voidwriteSuffixTo(Appendable out)This is called when no more data will be written.
-
-
-
Method Detail
-
writePrefixTo
void writePrefixTo(Appendable out) throws IOException
This is called before any data is written.- Throws:
IOException
-
write
void write(int c, Writer out) throws IOException- Throws:
IOException
-
write
void write(char[] cbuf, Writer out) throws IOException- Throws:
IOException
-
write
void write(char[] cbuf, int off, int len, Writer out) throws IOException- Throws:
IOException
-
write
void write(String str, Writer out) throws IOException
- Throws:
IOException
-
write
void write(String str, int off, int len, Writer out) throws IOException
- Throws:
IOException
-
append
Encoder append(char c, Appendable out) throws IOException
- Throws:
IOException
-
append
Encoder append(CharSequence csq, Appendable out) throws IOException
- Throws:
IOException
-
append
Encoder append(CharSequence csq, int start, int end, Appendable out) throws IOException
- Throws:
IOException
-
writeSuffixTo
void writeSuffixTo(Appendable out) throws IOException
This is called when no more data will be written. This should also flush any internal buffers toout. It should not, however, call flush onoutitself. This is to not interfere with any output buffering ofout.- Throws:
IOException
-
-