org.apache.abdera.protocol.server.multipart
Class MultipartInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.apache.abdera.protocol.server.multipart.MultipartInputStream
- All Implemented Interfaces:
- Closeable
public class MultipartInputStream
- extends FilterInputStream
InputStream that reads a given inputStream and skips the boundary tokens.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultipartInputStream
public MultipartInputStream(InputStream input,
byte[] boundary)
skipBoundary
public void skipBoundary()
throws IOException
- Throws:
IOException
read
public int read()
throws IOException
- Overrides:
read
in class FilterInputStream
- Throws:
IOException
read
public int read(byte[] bytes)
throws IOException
- Overrides:
read
in class FilterInputStream
- Throws:
IOException
read
public int read(byte[] buffer,
int offset,
int length)
throws IOException
- Overrides:
read
in class FilterInputStream
- Throws:
IOException
Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.