Package com.biglybt.core.util
Class MultiPartDecoder.FormField
- java.lang.Object
-
- com.biglybt.core.util.MultiPartDecoder.FormField
-
- Enclosing class:
- MultiPartDecoder
public static class MultiPartDecoder.FormField extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map
attributes
(package private) java.io.ByteArrayOutputStream
baos
(package private) java.io.File
file
(package private) java.io.FileOutputStream
fos
protected java.lang.String
name
(package private) java.io.InputStream
returned_stream
protected long
total_len
-
Constructor Summary
Constructors Modifier Constructor Description protected
FormField(java.lang.String _name, java.util.Map _attributes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
complete()
void
destroy()
java.lang.String
getAttribute(java.lang.String attr_name)
java.io.InputStream
getInputStream()
java.lang.String
getName()
java.lang.String
getString()
protected void
write(byte[] buffer, int start, int len)
-
-
-
Method Detail
-
getName
public java.lang.String getName()
-
getAttribute
public java.lang.String getAttribute(java.lang.String attr_name)
-
getInputStream
public java.io.InputStream getInputStream() throws java.io.IOException
- Throws:
java.io.IOException
-
getString
public java.lang.String getString() throws java.io.IOException
- Throws:
java.io.IOException
-
destroy
public void destroy()
-
write
protected void write(byte[] buffer, int start, int len) throws java.io.IOException
- Throws:
java.io.IOException
-
complete
protected void complete() throws java.io.IOException
- Throws:
java.io.IOException
-
-