org.jboss.resteasy.plugins.providers.multipart
Class MultipartInputImpl
java.lang.Object
org.jboss.resteasy.plugins.providers.multipart.MultipartInputImpl
- All Implemented Interfaces:
- MultipartInput
- Direct Known Subclasses:
- MultipartFormDataInputImpl
public class MultipartInputImpl
- extends java.lang.Object
- implements MultipartInput
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
boundary
protected java.lang.String boundary
boundaryBytes
protected byte[] boundaryBytes
pointer
protected int pointer
parts
protected java.util.List<InputPart> parts
currPart
protected MultipartInputImpl.PartImpl currPart
preambleEnd
protected int preambleEnd
workers
protected Providers workers
empty
protected static final java.lang.annotation.Annotation[] empty
baos
protected java.io.ByteArrayOutputStream baos
buffer
protected byte[] buffer
MultipartInputImpl
public MultipartInputImpl(java.lang.String boundary,
Providers workers)
getParts
public java.util.List<InputPart> getParts()
- Specified by:
getParts
in interface MultipartInput
createPart
protected MultipartInputImpl.PartImpl createPart()
parse
public void parse(java.io.InputStream is)
throws java.io.IOException
- Throws:
java.io.IOException
extractPart
protected void extractPart(java.io.InputStream is)
throws java.io.IOException
- Throws:
java.io.IOException
getPreamble
public java.lang.String getPreamble()
- Specified by:
getPreamble
in interface MultipartInput
getBufferAsString
public java.lang.String getBufferAsString()
readLine
protected java.lang.String readLine(java.io.InputStream is)
throws java.io.IOException
- Throws:
java.io.IOException
read
protected int read(java.io.InputStream is)
throws java.io.IOException
- Throws:
java.io.IOException
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2009. All Rights Reserved.