net.java.truecommons.io.OneTimeSource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of truecommons-io Show documentation
Show all versions of truecommons-io Show documentation
Provides common I/O components.
/*
* 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);
}
}