package com.l7tech.common.io;

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

public class IOExceptionThrowingInputStream extends InputStream {
   private final IOException a;

   public IOExceptionThrowingInputStream(IOException var1) {
      if (var1 == null) {
         throw new NullPointerException();
      }

      this.a = var1;
   }

   @Override
   public int read() throws IOException {
      throw this.a;
   }

   @Override
   public int available() throws IOException {
      throw this.a;
   }

   @Override
   public void close() throws IOException {
      throw this.a;
   }

   @Override
   public synchronized void reset() throws IOException {
      throw this.a;
   }

   @Override
   public boolean markSupported() {
      return false;
   }

   @Override
   public synchronized void mark(int var1) {
   }

   @Override
   public long skip(long var1) throws IOException {
      throw this.a;
   }

   @Override
   public int read(byte[] var1) throws IOException {
      throw this.a;
   }

   @Override
   public int read(byte[] var1, int var2, int var3) throws IOException {
      throw this.a;
   }
}
