Class PartParser.ByteArrayUploadContext

  • All Implemented Interfaces:
    org.apache.commons.fileupload.RequestContext, org.apache.commons.fileupload.UploadContext
    Enclosing class:
    PartParser

    public static class PartParser.ByteArrayUploadContext
    extends java.lang.Object
    implements org.apache.commons.fileupload.UploadContext
    • Constructor Detail

      • ByteArrayUploadContext

        public ByteArrayUploadContext​(byte[] content,
                                      java.lang.String encoding,
                                      java.lang.String contentType)
    • Method Detail

      • contentLength

        public long contentLength()
        Specified by:
        contentLength in interface org.apache.commons.fileupload.UploadContext
      • getCharacterEncoding

        public java.lang.String getCharacterEncoding()
        Specified by:
        getCharacterEncoding in interface org.apache.commons.fileupload.RequestContext
      • getContentType

        public java.lang.String getContentType()
        Specified by:
        getContentType in interface org.apache.commons.fileupload.RequestContext
      • getContentLength

        public int getContentLength()
        Specified by:
        getContentLength in interface org.apache.commons.fileupload.RequestContext
      • getInputStream

        public java.io.InputStream getInputStream()
                                           throws java.io.IOException
        Specified by:
        getInputStream in interface org.apache.commons.fileupload.RequestContext
        Throws:
        java.io.IOException