All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.elasticsearch.transport.netty.ChannelBufferStreamInputFactory Maven / Gradle / Ivy

There is a newer version: 8.15.1
Show newest version
package org.elasticsearch.transport.netty;

import org.elasticsearch.common.io.stream.StreamInput;
import org.jboss.netty.buffer.ChannelBuffer;

/**
 */
public class ChannelBufferStreamInputFactory {

    public static StreamInput create(ChannelBuffer buffer) {
        return new ChannelBufferStreamInput(buffer, buffer.readableBytes());
    }

    public static StreamInput create(ChannelBuffer buffer, int size) {
        return new ChannelBufferStreamInput(buffer, size);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy