protected abstract class AsyncJSONTransport.AbstractReader extends Object implements javax.servlet.ReadListener
Modifier | Constructor and Description |
---|---|
protected |
AbstractReader(AbstractHttpTransport.Context context,
Promise<Void> promise) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
append(byte[] buffer,
int offset,
int length) |
protected void |
finish(List<ServerMessage.Mutable> messages) |
protected void |
finish(String json) |
void |
onAllDataRead() |
void |
onDataAvailable() |
void |
onError(Throwable failure) |
protected AbstractReader(AbstractHttpTransport.Context context, Promise<Void> promise)
public void onDataAvailable() throws IOException
onDataAvailable
in interface javax.servlet.ReadListener
IOException
public void onAllDataRead() throws IOException
onAllDataRead
in interface javax.servlet.ReadListener
IOException
protected abstract void append(byte[] buffer, int offset, int length)
protected void finish(List<ServerMessage.Mutable> messages) throws IOException
IOException
protected void finish(String json) throws IOException
IOException
public void onError(Throwable failure)
onError
in interface javax.servlet.ReadListener
Copyright © 2008–2024 The CometD Project. All rights reserved.