Test Blame

src/test/java/org/apache/commons/fileupload/MultipartStreamTest.java
TagDateBlameLineSource
  FILEUPLOAD_1_3_RC2    Mon Mar 11 08:24:06 UTC 2013    11923a  50
    @Test
  FILEUPLOAD_1_3_RC1    Tue Mar 05 21:20:29 UTC 2013    efb4f0  51
    public void testTwoParamConstructor() throws Exception {
  FILEUPLOAD_1_3_RC1    Tue Mar 05 21:20:29 UTC 2013    efb4f0  52
        final String strData = "foobar";
  FILEUPLOAD_1_3_RC1    Tue Mar 05 21:20:29 UTC 2013    efb4f0  53
        final byte[] contents = strData.getBytes();
  FILEUPLOAD_1_3_RC1    Tue Mar 05 21:20:29 UTC 2013    efb4f0  54
        InputStream input = new ByteArrayInputStream(contents);
  FILEUPLOAD_1_3_RC1    Tue Mar 05 21:20:29 UTC 2013    efb4f0  55
        byte[] boundary = BOUNDARY_TEXT.getBytes();
  FILEUPLOAD_1_3_RC1    Tue Mar 05 21:20:29 UTC 2013    efb4f0  56
        MultipartStream ms = new MultipartStream(
  FILEUPLOAD_1_3_RC1    Tue Mar 05 21:20:29 UTC 2013    efb4f0  57
                input,
  FILEUPLOAD_1_3_RC1    Tue Mar 05 21:20:29 UTC 2013    efb4f0  58
                boundary,
  FILEUPLOAD_1_3_RC1    Tue Mar 05 21:20:29 UTC 2013    efb4f0  59
                new MultipartStream.ProgressNotifier(null, contents.length));
  FILEUPLOAD_1_3_RC1    Wed Mar 06 01:47:58 UTC 2013    b0e033  60
        assertNotNull(ms);
  FILEUPLOAD_1_3_RC1    Tue Mar 05 21:20:29 UTC 2013    efb4f0  61
    }

Found Source Blame

src/main/java/org/apache/commons/fileupload/MultipartStream.java
TagDateBlameLineSource
  FILEUPLOAD_1_3_RC1    Wed Mar 06 08:31:17 UTC 2013    556d4d  189
    protected static final byte[] HEADER_SEPARATOR = { CR, LF, CR, LF };
  FILEUPLOAD_1_3_RC1    Wed Mar 06 08:31:17 UTC 2013    556d4d  195
    protected static final byte[] FIELD_SEPARATOR = { CR, LF};
  FILEUPLOAD_1_3_RC1    Wed Mar 06 08:31:17 UTC 2013    556d4d  201
    protected static final byte[] STREAM_TERMINATOR = { DASH, DASH};
  FILEUPLOAD_1_3_RC1    Wed Mar 06 08:31:17 UTC 2013    556d4d  206
    protected static final byte[] BOUNDARY_PREFIX = { CR, LF, DASH, DASH};
  commons-fileupload-1.2rc4    Mon Nov 27 01:06:53 UTC 2006    b488ef  325
            ProgressNotifier pNotifier) {
  STRUTS_1_1_B3    Sun Mar 24 07:05:13 UTC 2002    86c629  326
        this.input = input;
  STRUTS_1_1_B3    Sun Mar 24 07:05:13 UTC 2002    86c629  327
        this.bufSize = bufSize;
  STRUTS_1_1_B3    Sun Mar 24 07:05:13 UTC 2002    86c629  328
        this.buffer = new byte[bufSize];
  commons-fileupload-1.2rc4    Sun Aug 06 03:14:36 UTC 2006    59a351  329
        this.notifier = pNotifier;
  FILEUPLOAD_1_1    Sun Dec 04 06:33:55 UTC 2005    8a8c78  333
        this.boundary = new byte[boundary.length + BOUNDARY_PREFIX.length];
  FILEUPLOAD_1_1    Sun Dec 04 06:33:55 UTC 2005    8a8c78  334
        this.boundaryLength = boundary.length + BOUNDARY_PREFIX.length;
  commons-fileupload-1.2.1rc1    Wed Jun 27 00:59:16 UTC 2007    ec7cbc  335
        this.keepRegion = this.boundary.length;
  FILEUPLOAD_1_1    Sun Dec 04 06:33:55 UTC 2005    8a8c78  336
        System.arraycopy(BOUNDARY_PREFIX, 0, this.boundary, 0,
  FILEUPLOAD_1_1    Sun Dec 04 06:33:55 UTC 2005    8a8c78  338
        System.arraycopy(boundary, 0, this.boundary, BOUNDARY_PREFIX.length,
  STRUTS_1_1_B3    Sun Mar 24 07:05:13 UTC 2002    86c629  341
        head = 0;
  STRUTS_1_1_B3    Sun Mar 24 07:05:13 UTC 2002    86c629  342
        tail = 0;
  STRUTS_1_1_B3    Sun Mar 24 07:05:13 UTC 2002    86c629  343
    }
  commons-fileupload-1.2rc4    Sun Aug 06 03:14:36 UTC 2006    59a351  360
        this(input, boundary, DEFAULT_BUFSIZE, pNotifier);
  STRUTS_1_1_B3    Sun Mar 24 07:05:13 UTC 2002    86c629  361
    }
src/main/java/org/apache/commons/fileupload/MultipartStream.java
TagDateBlameLineSource
  commons-fileupload-1.2rc4    Mon Nov 27 01:06:53 UTC 2006    b488ef  120
        ProgressNotifier(ProgressListener pListener, long pContentLength) {
  commons-fileupload-1.2rc4    Mon Nov 27 01:06:53 UTC 2006    b488ef  121
            listener = pListener;
  commons-fileupload-1.2rc4    Mon Nov 27 01:06:53 UTC 2006    b488ef  122
            contentLength = pContentLength;
  commons-fileupload-1.2rc4    Mon Nov 27 01:06:53 UTC 2006    b488ef  123
        }