Class 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • name

        protected final java.lang.String name
      • attributes

        protected final java.util.Map attributes
      • total_len

        protected long total_len
      • baos

        final java.io.ByteArrayOutputStream baos
      • file

        java.io.File file
      • fos

        java.io.FileOutputStream fos
      • returned_stream

        java.io.InputStream returned_stream
    • Constructor Detail

      • FormField

        protected FormField​(java.lang.String _name,
                            java.util.Map _attributes)
    • 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