本文整理了Java中org.eclipse.jetty.io.Buffer.setPutIndex()
方法的一些代码示例,展示了Buffer.setPutIndex()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Buffer.setPutIndex()
方法的具体详情如下:
包路径:org.eclipse.jetty.io.Buffer
类名称:Buffer
方法名:setPutIndex
暂无
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
private void initContent() throws IOException
{
if (_buffer == null)
{
_buffer = _buffers.getBuffer();
_buffer.setPutIndex(7);
_buffer.setGetIndex(7);
}
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp
public void notifyOutgoing(Buffer buffer, int position, int written)
{
if (listeners != null && !listeners.isEmpty() && written > 0)
{
for (NetworkTrafficListener listener : listeners)
{
try
{
Buffer view = buffer.asReadOnlyBuffer();
view.setGetIndex(position);
view.setPutIndex(position + written);
listener.outgoing(_socket, view);
}
catch (Exception x)
{
LOG.warn(x);
}
}
}
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
public void notifyOutgoing(Buffer buffer, int position, int written)
{
if (listeners != null && !listeners.isEmpty() && written > 0)
{
for (NetworkTrafficListener listener : listeners)
{
try
{
Buffer view = buffer.asReadOnlyBuffer();
view.setGetIndex(position);
view.setPutIndex(position + written);
listener.outgoing(_socket, view);
}
catch (Exception x)
{
LOG.warn(x);
}
}
}
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-server
public void notifyOutgoing(Buffer buffer, int position, int written)
{
if (listeners != null && !listeners.isEmpty() && written > 0)
{
for (NetworkTrafficListener listener : listeners)
{
try
{
Buffer view = buffer.asReadOnlyBuffer();
view.setGetIndex(position);
view.setPutIndex(position + written);
listener.outgoing(_socket, view);
}
catch (Exception x)
{
LOG.warn(x);
}
}
}
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus
public void notifyOutgoing(Buffer buffer, int position, int written)
{
if (listeners != null && !listeners.isEmpty() && written > 0)
{
for (NetworkTrafficListener listener : listeners)
{
try
{
Buffer view = buffer.asReadOnlyBuffer();
view.setGetIndex(position);
view.setPutIndex(position + written);
listener.outgoing(_socket, view);
}
catch (Exception x)
{
LOG.warn(x);
}
}
}
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
public Buffer getRequestContentChunk(Buffer buffer) throws IOException
{
synchronized (this)
{
if (_requestContentSource!=null)
{
if (buffer == null)
buffer = new ByteArrayBuffer(8192); // TODO configure
int space = buffer.space();
int length = _requestContentSource.read(buffer.array(),buffer.putIndex(),space);
if (length >= 0)
{
buffer.setPutIndex(buffer.putIndex()+length);
return buffer;
}
}
return null;
}
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-server
buffer.setPutIndex(buffer.putIndex() + decrypted_produced);
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
buffer.setPutIndex(buffer.putIndex() + decrypted_produced);
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp
buffer.setPutIndex(buffer.putIndex() + decrypted_produced);
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus
buffer.setPutIndex(buffer.putIndex() + decrypted_produced);
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp
buffer.setPutIndex(bbuf.position());
bbuf.position(0);
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-server
buffer.setPutIndex(bbuf.position());
bbuf.position(0);
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
buffer.setPutIndex(bbuf.position());
bbuf.position(0);
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus
buffer.setPutIndex(bbuf.position());
bbuf.position(0);
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
_buffer.setPutIndex(field_index);
addInt(num_fields);
_buffer.setPutIndex(tmp);
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
_buffer.setPutIndex(_buffer.putIndex() - 1);
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
_buffer.setPutIndex(_buffer.putIndex() - 1);
int put = _buffer.putIndex();
_buffer.setGetIndex(0);
_buffer.setPutIndex(0);
_buffer.put((byte)'A');
_buffer.put((byte)'B');
_buffer.put((byte)3);
addInt(payloadSize);
_buffer.setPutIndex(put);
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
_buffer.setPutIndex(_buffer.putIndex() - 1);
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
_buffer.setPutIndex(CHUNK_SPACE);
_buffer.setGetIndex(CHUNK_SPACE);
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp
_buffer.setPutIndex(CHUNK_SPACE);
_buffer.setGetIndex(CHUNK_SPACE);
内容来源于网络,如有侵权,请联系作者删除!