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

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;
}