/* * @(#)InputStreamAdapter.java 1.11 03/12/19 * * Copyright 2004 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ package com.sun.imageio.plugins.common; import java.io.IOException; import java.io.InputStream; import javax.imageio.stream.ImageInputStream; /** * @version 0.5 */ public class InputStreamAdapter extends InputStream { ImageInputStream stream; public InputStreamAdapter(ImageInputStream stream) { super(); this.stream = stream; } public int read() throws IOException { return stream.read(); } public int read(byte b[], int off, int len) throws IOException { return stream.read(b, off, len); } }