1 /*******************************************************************************
2 * Copyright (c) 2002 International Business Machines Corp. and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Common Public License v0.5
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/cpl-v05.html
9 * IBM Corporation - initial API and implementation
10 ******************************************************************************/
11 package net.sourceforge.phpdt.internal.corext.util;
13 import java.io.IOException;
14 import java.io.InputStream;
15 import java.io.Reader;
17 import net.sourceforge.phpeclipse.PHPeclipsePlugin;
19 // import net.sourceforge.phpdt.internal.ui.JavaPlugin;
21 public class IOCloser {
22 public static void perform(Reader reader, InputStream stream) {
24 rethrows(reader, stream);
25 } catch (IOException e) {
26 PHPeclipsePlugin.log(e);
30 public static void rethrows(Reader reader, InputStream stream)