org.apache.james.mime4j.io
Class PartialInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.apache.james.mime4j.io.PositionInputStream
org.apache.james.mime4j.io.PartialInputStream
- All Implemented Interfaces:
- java.io.Closeable
public class PartialInputStream
- extends PositionInputStream
Fields inherited from class java.io.FilterInputStream |
in |
Constructor Summary |
PartialInputStream(java.io.InputStream inputStream,
long offset,
long length)
|
Methods inherited from class java.io.FilterInputStream |
read |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PartialInputStream
public PartialInputStream(java.io.InputStream inputStream,
long offset,
long length)
throws java.io.IOException
- Throws:
java.io.IOException
available
public int available()
throws java.io.IOException
- Overrides:
available
in class PositionInputStream
- Throws:
java.io.IOException
read
public int read()
throws java.io.IOException
- Overrides:
read
in class PositionInputStream
- Throws:
java.io.IOException
read
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
- Overrides:
read
in class PositionInputStream
- Throws:
java.io.IOException
skip
public long skip(long n)
throws java.io.IOException
- Overrides:
skip
in class PositionInputStream
- Throws:
java.io.IOException
Copyright © 2004-2008 The Apache Software Foundation. All Rights Reserved.