uk.org.retep.util.io.lzma
Class LzmaInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by uk.org.retep.util.io.lzma.LzmaInputStream
All Implemented Interfaces:
java.io.Closeable

public class LzmaInputStream
extends java.io.InputStream

An InputStream that decompresses from the LZMA format

Author:
peter

Constructor Summary
LzmaInputStream(java.io.InputStream inputStream)
           
LzmaInputStream(java.io.InputStream inputStream, ProgressListener listener)
           
 
Method Summary
 void close()
           
 int read()
           
 int read(byte[] b)
           
 int read(byte[] b, int off, int len)
           
 long skip(long n)
           
 
Methods inherited from class java.io.InputStream
available, mark, markSupported, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LzmaInputStream

public LzmaInputStream(java.io.InputStream inputStream)
                throws java.io.IOException
Parameters:
inputStream - InputStream to decompress
Throws:
java.io.IOException

LzmaInputStream

public LzmaInputStream(java.io.InputStream inputStream,
                       ProgressListener listener)
                throws java.io.IOException
Parameters:
inputStream - InputStream to decompress
listener - ProgressListener to receive updates
Throws:
java.io.IOException
Method Detail

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.InputStream
Throws:
java.io.IOException

read

public int read()
         throws java.io.IOException
Specified by:
read in class java.io.InputStream
Throws:
java.io.IOException

read

public int read(byte[] b)
         throws java.io.IOException
Overrides:
read in class java.io.InputStream
Throws:
java.io.IOException

read

public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
Overrides:
read in class java.io.InputStream
Throws:
java.io.IOException

skip

public long skip(long n)
          throws java.io.IOException
Overrides:
skip in class java.io.InputStream
Throws:
java.io.IOException


Copyright © 1998-2010 Retep Development Group. All Rights Reserved.