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

net.java.truecommons.io.OneTimeSource Maven / Gradle / Ivy

There is a newer version: 2.5.0
Show newest version
/*
 * Copyright (C) 2012 Schlichtherle IT Services.
 * All rights reserved. Use is subject to license terms.
 */
package net.java.truecommons.io;

import java.io.InputStream;
import java.nio.channels.SeekableByteChannel;

/**
 * A source which can get used only once to obtain a given input stream or
 * seekable byte channel.
 * 
 * @see    OneTimeSink
 * @author Christian Schlichtherle
 */
public final class OneTimeSource
extends OneTimeFoundry
implements Source {

    public OneTimeSource(InputStream in) {
        super(in);
    }

    public OneTimeSource(SeekableByteChannel channel) {
        super(channel);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy