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

com.firefly.net.tcp.codec.flex.protocol.DataFrame Maven / Gradle / Ivy

There is a newer version: 5.0.0-dev6
Show newest version
package com.firefly.net.tcp.codec.flex.protocol;

/**
 * The data frame is used to transfer content.
 *
 * @author Pengtao Qiu
 */
public class DataFrame extends MessageFrame {

    public DataFrame(boolean endStream, int streamId,
                     boolean endFrame, byte[] data) {
        this(MAGIC, FrameType.DATA, VERSION, endStream, streamId, endFrame, data);
    }

    public DataFrame(Frame frame, boolean endStream, int streamId,
                     boolean endFrame, byte[] data) {
        this(frame.magic, frame.type, frame.version, endStream, streamId, endFrame, data);
    }

    public DataFrame(byte magic, FrameType type, byte version,
                     boolean endStream, int streamId,
                     boolean endFrame, byte[] data) {
        super(magic, type, version, endStream, streamId, endFrame, data);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy