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

com.fireflysource.net.http.common.v2.encoder.FrameBytes Maven / Gradle / Ivy

There is a newer version: 5.0.2
Show newest version
package com.fireflysource.net.http.common.v2.encoder;

import com.fireflysource.net.http.common.v2.frame.Frame;

import java.nio.ByteBuffer;
import java.util.List;

public class FrameBytes {

    public static final FrameBytes EMPTY = new FrameBytes();

    private int length;
    private List byteBuffers;

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public List getByteBuffers() {
        return byteBuffers;
    }

    public void setByteBuffers(List byteBuffers) {
        this.byteBuffers = byteBuffers;
    }

    public int getDataLength() {
        if (length > 0)
            return length - Frame.HEADER_LENGTH;
        else
            return 0;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy