Package org.cometd.server.http
Class AsyncJSONTransport.CharsetReader
- java.lang.Object
-
- org.cometd.server.http.AsyncJSONTransport.AbstractReader
-
- org.cometd.server.http.AsyncJSONTransport.CharsetReader
-
- All Implemented Interfaces:
jakarta.servlet.ReadListener
,java.util.EventListener
- Enclosing class:
- AsyncJSONTransport
protected class AsyncJSONTransport.CharsetReader extends AsyncJSONTransport.AbstractReader
-
-
Constructor Summary
Constructors Constructor Description CharsetReader(AbstractHttpTransport.Context context, Promise<java.lang.Void> promise, java.nio.charset.Charset charset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
append(byte[] buffer, int offset, int length)
void
onAllDataRead()
-
Methods inherited from class org.cometd.server.http.AsyncJSONTransport.AbstractReader
finish, finish, onDataAvailable, onError
-
-
-
-
Constructor Detail
-
CharsetReader
public CharsetReader(AbstractHttpTransport.Context context, Promise<java.lang.Void> promise, java.nio.charset.Charset charset)
-
-
Method Detail
-
append
protected void append(byte[] buffer, int offset, int length)
- Specified by:
append
in classAsyncJSONTransport.AbstractReader
-
onAllDataRead
public void onAllDataRead() throws java.io.IOException
- Specified by:
onAllDataRead
in interfacejakarta.servlet.ReadListener
- Overrides:
onAllDataRead
in classAsyncJSONTransport.AbstractReader
- Throws:
java.io.IOException
-
-