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

com.venky.cache.ChannelOutputStream Maven / Gradle / Ivy

The newest version!
package com.venky.cache;

import java.io.IOException;
import java.io.OutputStream;
import java.io.RandomAccessFile;
import java.nio.channels.Channel;
import java.nio.channels.SeekableByteChannel;

public class ChannelOutputStream extends OutputStream {
    Store store = null;
    public ChannelOutputStream(Store store) {
        this.store = store;
    }

    @Override
    public void write(int b) throws IOException {
        store.write(b);
    }
    @Override
    public void write(byte b[], int off, int len) throws IOException {
        store.write(b,off,len);
    }


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy