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

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

The newest version!
/*
 * Copyright (C) 2005-2015 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;
import javax.annotation.concurrent.NotThreadSafe;

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy