net.lingala.zip4j.io
Class PartInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by net.lingala.zip4j.io.BaseInputStream
          extended by net.lingala.zip4j.io.PartInputStream
All Implemented Interfaces:
Closeable
Direct Known Subclasses:
InflaterInputStream

public class PartInputStream
extends BaseInputStream


Constructor Summary
PartInputStream(RandomAccessFile raf, long start, long len, UnzipEngine unzipEngine)
           
 
Method Summary
 int available()
           
 void close()
           
 UnzipEngine getUnzipEngine()
           
 int read()
           
 int read(byte[] b)
           
 int read(byte[] b, int off, int len)
           
 void seek(long pos)
           
 long skip(long amount)
           
 
Methods inherited from class java.io.InputStream
mark, markSupported, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PartInputStream

public PartInputStream(RandomAccessFile raf,
                       long start,
                       long len,
                       UnzipEngine unzipEngine)
Method Detail

available

public int available()
Overrides:
available in class BaseInputStream

read

public int read()
         throws IOException
Overrides:
read in class BaseInputStream
Throws:
IOException

read

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

read

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

skip

public long skip(long amount)
          throws IOException
Overrides:
skip in class InputStream
Throws:
IOException

close

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

seek

public void seek(long pos)
          throws IOException
Overrides:
seek in class BaseInputStream
Throws:
IOException

getUnzipEngine

public UnzipEngine getUnzipEngine()
Overrides:
getUnzipEngine in class BaseInputStream


Copyright © 2012. All Rights Reserved.