org.nutz.mock.servlet.multipart
类 MultipartInputStream

java.lang.Object
  继承者 java.io.InputStream
      继承者 javax.servlet.ServletInputStream
          继承者 org.nutz.mock.servlet.MockInputStream
              继承者 org.nutz.mock.servlet.multipart.MultipartInputStream
所有已实现的接口:
java.io.Closeable

public class MultipartInputStream
extends MockInputStream


构造方法摘要
MultipartInputStream(java.lang.String charset, java.lang.String boundary)
           
 
方法摘要
 MultipartInputStream addMime(java.lang.String suffix, java.lang.String contentType)
           
 void append(java.lang.String name, java.io.File f)
           
 void append(java.lang.String name, java.lang.String value)
           
 int available()
           
 void close()
           
 java.lang.String getCharset()
           
 java.lang.String getContentType()
           
 void init()
           
 int read()
           
 
从类 javax.servlet.ServletInputStream 继承的方法
readLine
 
从类 java.io.InputStream 继承的方法
mark, markSupported, read, read, reset, skip
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

MultipartInputStream

public MultipartInputStream(java.lang.String charset,
                            java.lang.String boundary)
方法详细信息

getCharset

public java.lang.String getCharset()

getContentType

public java.lang.String getContentType()

available

public int available()
              throws java.io.IOException
覆盖:
java.io.InputStream 中的 available
抛出:
java.io.IOException

addMime

public MultipartInputStream addMime(java.lang.String suffix,
                                    java.lang.String contentType)

append

public void append(java.lang.String name,
                   java.io.File f)

append

public void append(java.lang.String name,
                   java.lang.String value)
指定者:
MockInputStream 中的 append

read

public int read()
         throws java.io.IOException
指定者:
java.io.InputStream 中的 read
抛出:
java.io.IOException

init

public void init()
指定者:
MockInputStream 中的 init

close

public void close()
           throws java.io.IOException
指定者:
接口 java.io.Closeable 中的 close
覆盖:
java.io.InputStream 中的 close
抛出:
java.io.IOException