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

org.hibernate.lob.ReaderInputStream Maven / Gradle / Ivy

There is a newer version: 4.2.4
Show newest version
//$Id: ReaderInputStream.java 5683 2005-02-12 03:09:22Z oneovthafew $
package org.hibernate.lob;

import java.io.IOException;
import java.io.InputStream;
import java.io.Reader;

/**
 * Exposes a Reader as an InputStream
 * @author Gavin King
 */
public class ReaderInputStream extends InputStream {
	
	private Reader reader;
	
	public ReaderInputStream(Reader reader) {
		this.reader = reader;
	}
	
	public int read() throws IOException {
		return reader.read();
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy