public abstract class ClientEncoder extends Object
Each of the methods takes an Appendable that the value is to be appended to.
Constructor and Description |
---|
ClientEncoder() |
Modifier and Type | Method and Description |
---|---|
abstract void |
appendBoolean(Appendable out, boolean value)
Encodes a boolean to the Appendable
|
abstract void |
appendByte(Appendable out, byte value)
Encodes a byte to the Appendable
|
abstract void |
appendChar(Appendable out, char value)
Encodes a char to the Appendable
|
abstract void |
appendCharSequence(Appendable out, CharSequence value)
Encodes a CharSequence to the Appendable
|
abstract void |
appendCollection(Appendable out, Collection value)
Encodes a Collection to the Appendable
|
abstract void |
appendDouble(Appendable out, double value)
Encodes a double to the Appendable
|
abstract void |
appendFloat(Appendable out, float value)
Encodes a float to the Appendable
|
abstract void |
appendInt(Appendable out, int value)
Encodes an int to the Appendable
|
abstract void |
appendLong(Appendable out, long value)
Encodes a long to the Appendable
|
abstract void |
appendMap(Appendable out, Map value)
Encodes a Map to the Appendable
|
abstract boolean |
appendObject(Appendable out, Object value)
Appends an Object to the output appendable, returning
true if it was able to append the Object in some form. |
abstract void |
appendShort(Appendable out, short value)
Encodes a short to the Appendable
|
public abstract boolean appendObject(Appendable out, Object value) throws IOException
true
if it was able to append the Object in some form.out
- Appendable to append the encoded value tovalue
- Object to encodeIOException
public abstract void appendCollection(Appendable out, Collection value) throws IOException
out
- Appendable to append the encoded value tovalue
- Collection to encodeIOException
public abstract void appendMap(Appendable out, Map value) throws IOException
out
- Appendable to append the encoded value tovalue
- Map to encodeIOException
public abstract void appendBoolean(Appendable out, boolean value) throws IOException
out
- Appendable to append the encoded value tovalue
- boolean to encodeIOException
public abstract void appendByte(Appendable out, byte value) throws IOException
out
- Appendable to append the encoded value tovalue
- byte to encodeIOException
public abstract void appendChar(Appendable out, char value) throws IOException
out
- Appendable to append the encoded value tovalue
- char to encodeIOException
public abstract void appendDouble(Appendable out, double value) throws IOException
out
- Appendable to append the encoded value tovalue
- double to encodeIOException
public abstract void appendFloat(Appendable out, float value) throws IOException
out
- Appendable to append the encoded value tovalue
- float to encodeIOException
public abstract void appendLong(Appendable out, long value) throws IOException
out
- Appendable to append the encoded value tovalue
- long to encodeIOException
public abstract void appendInt(Appendable out, int value) throws IOException
out
- Appendable to append the encoded value tovalue
- int to encodeIOException
public abstract void appendShort(Appendable out, short value) throws IOException
out
- Appendable to append the encoded value tovalue
- short to encodeIOException
public abstract void appendCharSequence(Appendable out, CharSequence value) throws IOException
out
- Appendable to append the encoded value tovalue
- CharSequence to encodeIOException