Package org.xbib.elasticsearch.common.bytes

Examples of org.xbib.elasticsearch.common.bytes.ChannelBufferBytesReference


        buffer.markReaderIndex();
    }

    @Override
    public BytesReference readBytesReference(int length) throws IOException {
        ChannelBufferBytesReference ref = new ChannelBufferBytesReference(buffer.slice(buffer.readerIndex(), length));
        buffer.skipBytes(length);
        return ref;
    }
View Full Code Here


    public NettyHttpRequest(org.jboss.netty.handler.codec.http.HttpRequest request) {
        this.request = request;
        this.params = newHashMap();
        this.content = request.getContent().readable() ?
                new ChannelBufferBytesReference(request.getContent()) :
                BytesArray.EMPTY;
        this.uri = request.getUri();
        int pathEndPos = uri.indexOf('?');
        if (pathEndPos < 0) {
            this.rawPath = uri;
View Full Code Here

TOP

Related Classes of org.xbib.elasticsearch.common.bytes.ChannelBufferBytesReference

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.