001/* 002 * To change this template, choose Tools | Templates 003 * and open the template in the editor. 004 */ 005package org.anarres.lzo.hadoop.codec; 006 007import java.io.IOException; 008import java.io.InputStream; 009import org.apache.hadoop.io.compress.CompressionInputStream; 010 011/** 012 * 013 * @author shevek 014 */ 015public class LzopInputStream extends CompressionInputStream { 016 017 public LzopInputStream(InputStream in) throws IOException { 018 super(new org.anarres.lzo.LzopInputStream(in)); 019 } 020 021 @Override 022 public int read(byte[] buf, int off, int len) throws IOException { 023 return in.read(buf, off, len); 024 } 025 026 @Override 027 public int read() throws IOException { 028 return in.read(); 029 } 030 031 @Override 032 public void resetState() throws IOException { 033 } 034}