blob: b5d584f51b6a9e8e271f5372f4000f9b4acf5b4d [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004 IBM Corporation and others. All rights reserved. This
* program and the accompanying materials are made available under the terms of
* the Eclipse Public License v1.0 which accompanies this distribution, and is
* available at http://www.eclipse.org/legal/epl-v10.html
*
* Contributors: Sian January - initial version
* ...
******************************************************************************/
package org.eclipse.ajdt.core.tests.testutils;
import java.io.IOException;
import java.io.InputStream;
import java.io.Reader;
public class ReaderInputStream extends InputStream {
private Reader reader;
public ReaderInputStream(Reader reader){
this.reader = reader;
}
/* (non-Javadoc)
* @see java.io.InputStream#read()
*/
public int read() throws IOException {
return reader.read();
}
public void close() throws IOException {
reader.close();
}
}