org.jboss.resteasy.plugins.providers.multipart
Class MultipartInputImpl

java.lang.Object
  extended by 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

Nested Class Summary
 class MultipartInputImpl.PartImpl
           
 
Field Summary
protected  java.io.ByteArrayOutputStream baos
           
protected  java.lang.String boundary
           
protected  byte[] boundaryBytes
           
protected  byte[] buffer
           
protected  MultipartInputImpl.PartImpl currPart
           
protected static java.lang.annotation.Annotation[] empty
           
protected  java.util.List<InputPart> parts
           
protected  int pointer
           
protected  int preambleEnd
           
protected  Providers workers
           
 
Constructor Summary
MultipartInputImpl(java.lang.String boundary, Providers workers)
           
 
Method Summary
protected  MultipartInputImpl.PartImpl createPart()
           
protected  void extractPart(java.io.InputStream is)
           
 java.lang.String getBufferAsString()
           
 java.util.List<InputPart> getParts()
           
 java.lang.String getPreamble()
           
static void main(java.lang.String[] args)
           
 void parse(java.io.InputStream is)
           
protected  int read(java.io.InputStream is)
           
protected  java.lang.String readLine(java.io.InputStream is)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

MultipartInputImpl

public MultipartInputImpl(java.lang.String boundary,
                          Providers workers)
Method Detail

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.