You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Javadoc from org.eclipse.jetty.http.api.Stream.Listener.onDataAvailable(Stream) says:
class MyStreamListener implements Stream.Listener
{
@Override
public void onDataAvailable(Stream stream)
{
// Read a chunk of the content.
Stream.Data data = stream.readData();
if (data == null)
{
// No data available now, demand to be called back.
stream.demand();
}
else
{
// Process the content.
process(data.getByteBuffer());
// Notify that the content has been consumed.
data.release();
if (!data.frame().isEndStream())
{
// Demand to be called back.
stream.demand();
}
}
}
}
However there is no such method Stream.Data.getByteBuffer().
The text was updated successfully, but these errors were encountered:
jetty-12.0.x
Javadoc from org.eclipse.jetty.http.api.Stream.Listener.onDataAvailable(Stream) says:
However there is no such method
Stream.Data.getByteBuffer()
.The text was updated successfully, but these errors were encountered: