DataSink.java 328 Bytes
Newer Older
liqin's avatar
liqin committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
package cn.wisenergy.chnmuseum.party.common.video;

import java.io.IOException;

public interface DataSink {

    interface Factory {
        DataSink createDataSink();
    }

    void open() throws IOException;

    void write(byte[] buffer, int offset, int length) throws IOException;

    void close() throws IOException;
}