public class Encoder
extends java.lang.Object
implements java.lang.Appendable, java.io.Closeable, java.io.Flushable
| Modifier and Type | Method and Description |
|---|---|
java.lang.Appendable |
append(char c) |
java.lang.Appendable |
append(java.lang.CharSequence sq) |
java.lang.Appendable |
append(java.lang.CharSequence sq,
int start,
int length) |
Encoder |
charset(java.nio.charset.Charset encoding) |
Encoder |
charset(java.lang.String encoding) |
void |
close() |
Encoder |
deflate() |
byte[] |
digest() |
void |
flush() |
Encoder |
indent(java.lang.String tabs) |
Encoder |
keepOpen() |
Encoder |
mark() |
Encoder |
put(java.lang.Object object) |
Encoder |
to() |
Encoder |
to(java.lang.Appendable out) |
Encoder |
to(java.io.File file) |
Encoder |
to(java.io.OutputStream out) |
java.lang.String |
toString() |
Encoder |
writeDefaults() |
public Encoder put(java.lang.Object object) throws java.lang.Exception
java.lang.Exceptionpublic Encoder mark() throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmExceptionpublic byte[] digest()
throws java.security.NoSuchAlgorithmException,
java.io.IOException
java.security.NoSuchAlgorithmExceptionjava.io.IOExceptionpublic Encoder to() throws java.io.IOException
java.io.IOExceptionpublic Encoder to(java.io.File file) throws java.io.IOException
java.io.IOExceptionpublic Encoder charset(java.lang.String encoding)
public Encoder charset(java.nio.charset.Charset encoding)
public Encoder to(java.io.OutputStream out) throws java.io.IOException
java.io.IOExceptionpublic Encoder to(java.lang.Appendable out) throws java.io.IOException
java.io.IOExceptionpublic java.lang.Appendable append(char c)
throws java.io.IOException
append in interface java.lang.Appendablejava.io.IOExceptionpublic java.lang.Appendable append(java.lang.CharSequence sq)
throws java.io.IOException
append in interface java.lang.Appendablejava.io.IOExceptionpublic java.lang.Appendable append(java.lang.CharSequence sq,
int start,
int length)
throws java.io.IOException
append in interface java.lang.Appendablejava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic Encoder writeDefaults()
public void flush()
throws java.io.IOException
flush in interface java.io.Flushablejava.io.IOExceptionpublic Encoder deflate()
public Encoder indent(java.lang.String tabs)
public Encoder keepOpen()
Copyright (c) aQute SARL (2000, 2017) and others. All Rights Reserved.